Chapter 5. Programming Your ASP.NET Web Pages
In the previous 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. NET (VB.NET), and most of that code was pretty straightforward. However, coding is an important part of any web site. 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, being able 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. In particular, this chapter looks at:
How to work with objects and collections in a programming environment
Different ways to make decisions in your code
The options available for creating repetitive blocks of functionality
Different ways to write well-organized and documented code
What object orientation is, and how you can use it in your applications
Best of all, just as with all the other samples in the book, this entire chapter covers both VB.NET and C# examples. 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. The choice of your preferred language is really up to you.
To get the most out of this chapter, it's recommended to actually ...
Get Beginning ASP.NET 3.5: In C# and VB 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.