代码编辑器:
x
1
<!DOCTYPE html>
2
<meta charset="utf-8" />
3
<form runat="server">
4
<p>A basic TextBox:
5
<asp:TextBox id="tb1" runat="server" /></p>
6
<p>A password TextBox:
7
<asp:TextBox id="tb2" TextMode="password" runat="server" /></p>
8
<p>A TextBox with text: <asp:TextBox id="tb4" Text="Hello World!" runat="server" /></p>
9
<p>A multiline TextBox:
10
<asp:TextBox id="tb3" TextMode="multiline" runat="server" />
11
</p>
12
<p>A TextBox with height:
13
<asp:TextBox id="tb6" rows="5" TextMode="multiline"
14
runat="server" /></p>
15
<p>A TextBox with width:
16
<asp:TextBox id="tb5" columns="30" runat="server" /></p>
17
</form>
18