asp.net.ph

ListControl.AutoPostBack Property

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.

Syntax


Inline <asp:ListControl autopostback = [ true I false ]... >
Script ListControl.AutoPostBack = [ true I false ]

Property Value

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.

Remarks

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.

Example

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 

See Also

ListControl Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph