O'Reilly logo

ASP.NET for Web Designers by Peter Ladka

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

List Controls

As with every other group of server controls, it pays for us to first take a look at the parent of all these controls. This group’s Mama and Dada is the ListControl class, which is located in the System.Web.UI.WebControls namespace. Table 9.1 displays the ListControl’s properties. It also has one method that the other list controls will inherit.

Table 9.1. ListControl Object Properties
Property Description
AutoPostBack Gets or sets a value indicating whether a postback to the server automatically occurs when the user changes the list selection.
DataMember Gets or sets the specific table in the datasource to bind to the control.
DataSource Gets or sets the data source that is used to populate the items of the list control.

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