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 4. Working with ASP.NET Controls

ASP.NET Server Controls are the workhorses of ASP.NET. Almost all the pages you build in VWD will contain one or more server controls. These controls come in all sorts and sizes, ranging from simple controls like a Button and a Label to complex controls that are capable of displaying data from a database like the TreeView and the GridView, which you'll see in Chapters 7 and 12.

The architecture of ASP.NET Server Controls is deeply integrated into ASP.NET, giving the controls a feature set that is quite unique in today's technologies for building web sites.

This chapter shows you what server controls are, how they work, and which ones are available out of the box when you install Visual Web Developer.

In particular, this chapter teaches you the following topics:

  • What ASP.NET Server Controls are

  • The different kind of server controls you have at your disposal

  • The common behavior shared among most of the server controls

  • How the ASP.NET runtime processes the server controls on your page

  • How server controls are able to maintain their state across postbacks

The chapter starts off with a general discussion of server controls. You'll see how to define them in your code by dragging them from the Toolbox into Design or Markup View.

The section that follows gives you a thorough look at the many controls that are available in the VWD Toolbox.

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