Variables
I’ve been using variables throughout the first two chapters, and you may have a loose idea of what a variable is and does. Remember—a variable is nothing more than a container.
If you come from a traditional ASP background, variables created sloppy coding behavior because variables weren’t really variables in the truest sense of the word. They were variants and could basically hold anything without ever indicating what type of data the variable was holding. Now variables must be told what they are holding, otherwise…BOOM!!! It won’t work.
We are going to explore variables and their data types in both languages. There are some differences in names, the way you address variables, and how you manipulate them. First I must show you what ...
Get ASP.NET for Web Designers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.