Thursday, 15 August 2013

asp.net ajax textbox water mark extender

asp.net ajax textbox water mark extender


This example explains  How to use  TEXTBOX water mark extender in ASP.NET WEB APPLICATIONS.

  • TextBox Water Mark Extenders describes the TextBox.

TEXTBOX WATER MARK EXTENDER  properties
  1. targetcontrolid
  2. watermarktext
  3. watermarkcssclass(optional)

                        

    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <h1>ASP.NET AJAX TEXTBOX WATER MARK DEMO</h1>
    <div>
  
        <b>UserName</b><asp:TextBox ID="txtUserName" runat="server"></asp:TextBox><br />
          <asp:TextBoxWatermarkExtender ID="txtUserName_TextBoxWatermarkExtender" 
              runat="server" Enabled="True" TargetControlID="txtUserName" WatermarkText="Enter User Name" WatermarkCssClass="watermark">
          </asp:TextBoxWatermarkExtender>

          <b>FirstName</b><asp:TextBox ID="txtFirstName" runat="server"></asp:TextBox></br>
          <asp:TextBoxWatermarkExtender ID="txtPassword_TextBoxWatermarkExtender" 
              runat="server" Enabled="True" TargetControlID="txtFirstName" WatermarkText="Enter First Name" WatermarkCssClass="watermark">
          </asp:TextBoxWatermarkExtender>
          

<b>LastName</b><asp:TextBox ID="txtLastName" runat="server"></asp:TextBox></br>
          <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" 
              runat="server" Enabled="True" TargetControlID="txtLastName" WatermarkText="Enter Last Name" WatermarkCssClass="watermark">
          </asp:TextBoxWatermarkExtender>

          <asp:Button ID="btnLogin" runat="server" Text="Login" />
    </div>

Tags: asp.net ajax textbox water mark extender,asp.net ajax water mark text extender,
ajax water mark text extender, How to use asp.net ajax textbox water mark extender.