The ListControl Class

All ASP.NET list controls inherit from ListControl in the System.Web. UI.WebControls namespace. Inheritance is the foundation of OOP design and is the means by which one class acquires all the behavior and attributes of its parent class. The new class indicates only how it is different from its parent by overriding or adding to the properties, methods, and events of the parent class. Table 6.1 shows a summary of the properties, methods, and events of the ListControl class. Each of the four controls discussed in this chapter shares these common attributes, so please take a moment to review them before the first example.

Table 6.1. Properties, Methods, and Events of the ListControl Class
Name Item Description
AutoPostBack

Get ASP.NET by Example 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.