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.

Get ASP.NET for Web Designers 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.