O'Reilly logo

Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Working with ASP.NET Server Controls

WHAT YOU WILL LEARN IN THIS CHAPTER:

  • What ASP.NET Server Controls are

  • The different kinds 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

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 like the TreeView and the GridView that are capable of displaying data from a data source (like a database or an XML file). You see these controls in Chapters 7 and 13.

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.

The chapter starts off with a general discussion of server controls. You see how to define them in your code by adding them to Design or Markup View.

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

INTRODUCTION TO SERVER CONTROLS

It's important to understand how server controls operate and how they are completely different ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required