ASP.NET Text 属性

返回 ASP.NET TextBox 控件参考手册

定义和用法

Text 属性用于设置或返回 TextBox 控件的文本。

语法

<asp:TextBox Text="string" runat="server" />
属性 描述
string 字符串值,规定 TextBox 控件的文本。
这个在线速查手册由www.w▌▬▌▬3▌▬x▌▬▌▬u▌▬e.com提供,请勿盗用!

实例

下面的例子设置了 TextBox 控件的文本:

<form runat="server">
<asp:TextBox id="tb1" runat="server" Text="Name" />
</form>

返回 ASP.NET TextBox 控件参考手册