Friday, 17 May 2013

how to use ajax TextBoxWatermarkExtender in asp.net web application

How to use Ajax TextBoxWatermarkExtender in asp.net web application

Step 1: Open your project where you want to add watermarkextender  and open your .aspx page

Step 2 : Add Script Manger control in your page by drag and drop method 

Step3 : Add textbox in your page 

Step 4 : Add TextBoxWatermarkExtender control in your page 

Step 5: Implement some property of extender like below code

 <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
 <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            <asp:TextBoxWatermarkExtender ID="TextBox1_TextBoxWatermarkExtender"             runat="server"
                Enabled="True" WatermarkText="Enter text" TargetControlID="TextBox1">
            </asp:TextBoxWatermarkExtender>

Step 6: This way you can use TextBoxWatermarkExtender.

 

No comments:

Post a Comment

Thank you for your interest .