Latest web development tutorials

ASP.NET TextBox AutoPostBack property

TextBox controls TextBox controls

Definition and Usage

AutoPostBack property is used to set or return in the TextBox control when the user press "ENTER" or "TAB" key, whether there back to the automatic operation of the server.

If the property is set to TRUE, enable automatic return, otherwise FALSE. The default is FALSE.

grammar

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


Examples

The following examples of the AutoPostBack property is set to "TRUE":

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

The demonstration >>

TextBox controls TextBox controls