
80
|
Chapter 5: ASP.NET Server Controls
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Display Controls
Display controls simply render text or images to the browser. Table 5-1 lists the
display controls ASP.NET supports.
PasswordText.Attributes("Value") = "New Password"
MultiText.Text = "Multiline TextBox can hold many lines of text"
End Sub
</script>
</head>
<body>
<h1>Input Control Example</h1>
<form runat="server">
<table border="1" cellpadding="5" cellspacing="0">
<tr>
<td>
Single Line TextBox:
</td>
<td>
<asp:textbox id="SingleText"
text="Single Line TextBox"
runat="server" />
</td>
</tr>
<tr>
<td>
Password TextBox:
</td>
<td>
<asp:textbox id="PasswordText"
text="Password"
textmode="Password"
runat="server" />
</td>
</tr>
<tr>
<td>
Multiline TextBox:
</td>
<td>
<asp:textbox id="MultiText"
text="Multiline TextBox"
textmode="Multiline"
runat="server" />
</td>
</tr>
</table>
</form>
</body>
</html>
Example 5-5. InputControls.aspx (continued)