ASP.NET TextBox AutoPostBackProperty


TextBox 控件TextBox Control

Definition and Usage

The AutoPostBack property is used to set or return whether an automatic postback to the server occurs when the user presses the "ENTER" or "TAB" key in the TextBox control.

If this property is set to TRUE, automatic postback is enabled; otherwise, it is FALSE. The default is FALSE.

Syntax

<asp:TextBox AutoPostBack="TRUE|FALSE" runat="server"/>


Example

The following example sets the AutoPostBack property to "TRUE":

<form runat="server">
<asp:TextBox id="tb1" runat="server" AutoPostBack="TRUE" />
</form>

Show example »

TextBox 控件TextBox Control Other Extensions