<%@ Page Language="vb" %>
<html>
<head>
<title>Input Control Example</title>
<script runat="server">
Sub Page_Load()
SingleText.Text = "Hello ASP.NET"
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>
|