System.Web.UI.WebControls Namespace ListControl Class
Sets or retrieves a value indicating whether a postback to the server automatically occurs when the user changes the selection in the list.
Inline |
<asp:ListControl autopostback = [ true I false ]... > |
Script |
ListControl.AutoPostBack = [ true I false ] |
This property accepts or returns only a boolean value: true if an automatic postback to the server will occur whenever the user changes the selection of the list; otherwise, false.
The property is read/write with a default value of false.
Set this property to true if the server needs to capture the selection as soon as it is made.
This property is typically used in conjunction with the SelectedIndexChanged event of the control, to automatically populate other controls on the Web Form based on a user's selection from the list.
The following example demonstrates how to enable AutoPostBack for a DropDownList control.
Select Table <asp:dropdownlist id = "tblList" datatextfield = "Table_Name"
autopostback onSelectedIndexChanged = "getFields" runat = "server" />
Show me
ListControl Members