Set asp:textbox rows count and textmode ( : Multi Line TextBox « Asp Control « ASP.Net

Set asp:textbox rows count and textmode (

<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

    <title>Text Box Example</title>
    <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">


Related examples in the same category

1.Set asp:TextBox TextMode to MultiLine, Rows to 5 (
2.Multiline TextBox (C#)