Partager via


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

Visual Basic  Public  Property AutoPostBack As bool
C# public  bool AutoPostBack { get; set; }
Managed C++ public:  __property bool get_AutoPostBack();
public:  __property void set_AutoPostBack(bool);
JScript public   function get AutoPostBack() : bool;
public   function set AutoPostBack(bool);

Possible Values

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