O'Reilly logo

ASP.NET for Web Designers by Peter Ladka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required