Chapter 5

Programming Your ASP.NET Web Pages

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

Wrox.com Code Downloads for this Chapter

You can find the wrox.com code downloads for this chapter on the Download Code tab at www.wrox.com/remtitle.cgi?isbn=1118311809. The code is in the Chapter 5 download.

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

Note
To get the most out of this chapter, it's ...

Get Beginning ASP.NET 4.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.