Convert int value to string (VB.net) : Type Convert « Language Basics « ASP.Net






Convert int value to string (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

1.Convert string to double (VB.net)
2.Convert selected date from asp:Calendar to long string (VB.net)
3.Convert value in asp:TextBox to int in try catch block (VB.net)
4.Convert value in asp:TextBox to date in try catch block (VB.net)
5.Convert value in asp:TextBox to bool in try catch block (VB.net)
6.Convert value from asp:TextBox to int and compare (VB.net)
7.Convert Now (current date) to string (C#)
8.Output ASCII Code (C#)
9.Convert String to int and decimal (C#)
10.Convert double and date to string (C#)
11.Int, String and date variables (C#)
12.Read string from asp textbox and format it to DateTime (C#)
13.Convert int to String (C#)
14.Convert date to string (C#)