ASP.NET TextBox Text property
Definition and Usage
Text property sets or returns the text of the TextBox control.
grammar
<asp:TextBox Text="string" runat="server" />
属性 | 描述 |
---|---|
string | 字符串值,规定 TextBox 控件的文本。 |
Examples
The following example sets the text of a TextBox control:
<form runat="server">
<asp:TextBox id="tb1" runat="server" Text="Name" />
</form>
<asp:TextBox id="tb1" runat="server" Text="Name" />
</form>
The demonstration >>
TextBox controls