WHAT YOU WILL LEARN IN THIS CHAPTER:
How to work with data types, variables, objects, and collections in a programming environment
Different ways to make decisions in your code
The options available for creating blocks of functionality that can easily be reused
Different ways to write well-organized and documented code
What object orientation is, and how you can use it in your applications
In the previous four chapters, you created a number of Web Forms that contained mostly ASP.NET Server Controls and plain HTML. Only a few of the examples contained actual programming code, written in either C# or Visual Basic (VB.NET), and most of that code was pretty straightforward. However, not all of your pages will always be so simple. Although the many smart Server Controls you have at your disposal minimize the amount of code you need to write compared to the older 1.x family of the .NET Framework or other web technologies like classic ASP or PHP, the ability to read, understand, and write code is a critical asset in your web development toolkit.
This chapter teaches you the basics and beyond of programming for web applications. Just as with all the other samples in the book, this entire chapter covers both VB.NET and C#. For every concept or piece of theory introduced in this chapter, you see an example in both VB.NET and C# at the same time. Which language you prefer is entirely your decision.
To get the most out of this chapter, it's recommended ...