TextBox.AutoPostBack Property
.NET Framework 2.0
Gets or sets a value indicating whether an automatic post back to the server occurs whenever the user presses the ENTER or the TAB key while in the TextBox control.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
[ThemeableAttribute(false)] public: virtual property bool AutoPostBack { bool get (); void set (bool value); }
/** @property */ public boolean get_AutoPostBack () /** @property */ public void set_AutoPostBack (boolean value)
public function get AutoPostBack () : boolean public function set AutoPostBack (value : boolean)
Property Value
true if an automatic post back to the server occurs whenever the user presses the ENTER or the TAB key while in the TextBox control; otherwise, false. The default is false.Use the AutoPostBack property to specify whether an automatic post back to the server will occur whenever the user presses the ENTER or the TAB key while in the TextBox control.
Note |
|---|
| A postback occurs only when the user presses the ENTER or the TAB key while in the TextBox control. |
This property cannot be set by themes or style sheet themes. For more information, see ThemeableAttribute and ASP.NET Themes and Skins Overview.
| Topic | Location |
|---|---|
| How to: Respond to Changes in a TextBox Web Server Control | Building ASP .NET Web Applications |
| How to: Specify Whether ASP.NET Web Server Controls Post to the Server | Building ASP .NET Web Applications |
| How to: Respond to Changes in a TextBox Web Server Control | Building ASP .NET Web Applications |
| How to: Specify Whether ASP.NET Web Server Controls Post to the Server | Building ASP .NET Web Applications |
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Community Additions
ADD
Show:
Note