Password field (asp:textbox textmode = password) (VB.net) : Password Field « Asp Control « ASP.Net

Home
ASP.Net
1.ADO.net Database
2.Ajax
3.Asp Control
4.Collections
5.Components
6.Data Binding
7.Development
8.File Directory
9.HTML Control
10.Language Basics
11.Login Security
12.Mobile Control
13.Network
14.Page
15.Request
16.Response
17.Server
18.Session Cookie
19.Sitemap
20.Theme Style
21.User Control and Master Page
22.Validation by Control
23.Validation by Function
24.WebPart
25.WPF
26.XML
ASP.Net » Asp Control » Password Field 
Password field (asp:textbox textmode = password) (VB.net)

<script runat="Server" language="VB">
Sub Page_Load()
 
    Dim strArrayDetails(2As 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=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.Using a TextBox Control for Passwords (VB.net)
2.Password Field Demo (C#)
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.