Set asp:textbox rows count and textmode (VB.net)
<script runat="Server" language="VB">
Sub Page_Load()
Dim strArrayDetails(2) As String
Dim intLoop As Integer
strArrayDetails(0) = text1.Text
strArrayDetails(1) = text2.Text
strArrayDetails(2) = text3.Text
Message1.text = CStr(strArrayDetails(0))
Message2.text = CStr(strArrayDetails(1))
Message3.text = CStr(strArrayDetails(2))
End Sub
</script>
<html>
<head>
<title>Text Box Example</title>
</head>
<body>
<asp:label id="message1" runat="server" />
<br />
<asp:label id="message2" runat="server" />
<br />
<asp:label id="message3" runat="server" />
<br />
<form runat="server">
Please enter your name:
<asp:textbox id="text1" runat="server" />
<br /><br />
Please enter your address:
<asp:textbox id="text2" runat="server" rows=5 textmode="multiline" />
<br /><br />
Please enter your chosen password:
<asp:textbox id="text3" runat="server" textmode="password" />
<br /><br />
<input type="Submit">
</form>
</body>
</html>
Related examples in the same category