AUTOPOSTBACK Attribute | AutoPostBack Property

Sets or retrieves a value that indicates whether or not the control posts back to the server each time a user interacts with the control.

Syntax

ASP <tagPrefix:ELEMENT AUTOPOSTBACK = bAutoPostBack ... >
Script [ bAutoPostBack = ] object.AutoPostBack

Possible Values

tagPrefix Required. The element prefix associated with the WebControls namespace (Microsoft.Web.UI.WebControls). A TagPrefix is defined using the directive.
bAutoPostBack bool that specifies or receives whether or not the control posts back to the server each time a user interacts with the control.
falseDefault. The control does not post back to the server until the form is submitted.
trueThe control posts back to the server with each user interaction.

The property is read/write. The property has a default value of false.

Remarks

For most WebControls, when AutoPostBack is false, only the events from actions that cause a net change in the state of the control are submitted to the server. However, for the About the TreeView WebControl, when AutoPostBack is false, all the events are queued and submitted together to the server.

Applies To

TABSTRIP, TOOLBAR, TOOLBARCHECKBUTTON, TOOLBARCHECKGROUP, TREEVIEW

See Also

Internet Explorer WebControls, About the TabStrip WebControl, About the Toolbar WebControl, About the TreeView WebControl