Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: C#
Expertise: Beginner
Sep 6, 2005

Initializing a TextBox

There are two ways to initialize a TextBox whose TextMode is "password" with a default password:
  1. 
    <asp:TextBox TextMode="Password" id="txtPwd" RunAt="server"/>
    
    <script language="C#" runat="server">
      void Page_Load (Object sender, EventArgs e)
      {
          txtPwd.Attributes.Add ("value", "Sneha");
      }
    </script>
    
  2. 
    <asp:TextBox Value="Sneha" TextMode="Password" id="txtPwd" RunAt="server"/>
    
Vadivel Mohanakrishnan
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap