Skip to Content
Beginning ASP.NET 3.5: In C# and VB
book

Beginning ASP.NET 3.5: In C# and VB

by Imar Spaanjaars
March 2008
Intermediate to advanced content levelIntermediate to advanced
766 pages
21h 15m
English
Wrox
Content preview from Beginning ASP.NET 3.5: In C# and VB

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

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning ASP.NET 4: in C# and VB

Beginning ASP.NET 4: in C# and VB

Imar Spaanjaars
Professional ASP.NET 3.5 SP1 Edition: In C# and VB

Professional ASP.NET 3.5 SP1 Edition: In C# and VB

Bill Evjen, Scott Hanselman, Devin Rader

Publisher Resources

ISBN: 9780470187593Purchase book