ASP.NET TextBox TextMode 属性

定义和用法
TextMode 属性用于设置或返回 TextBox 控件的行为模式。
语法
<asp:TextBox TextMode="mode" runat="server" />
属性 | 描述 |
---|---|
mode | TextMode 枚举值之一。默认值为 SingleLine。 可能的值:
|
实例
下面的实例把 TextBox 控件的文本模式设置为 "Password":The following example sets the text mode of a TextBox control to "Password":
<form runat="server">
<asp:TextBox id="tb1" runat="server" TextMode="Password" />
</form>
<asp:TextBox id="tb1" runat="server" TextMode="Password" />
</form>
演示实例 »
