How to add calendar extender in textbox asp.net

{0 Comments}

See the following step and see how easily you can add calendar extender or calendar to text box in asp.net.

    1.  First insert a script manager.

    1. Insert a text box in web form

    1. Add calendar extender. As shown in following image.

    1. Or have look on source code of the page.

 HTML |  copy code |? 
1
 
2
    <asp:ScriptManager ID="ScriptManager1" runat="server">
3
    </asp:ScriptManager>
4
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
5
    <cc1:CalendarExtender ID="TextBox1_CalendarExtender" runat="server" 
6
        Enabled="True" TargetControlID="TextBox1">
7
    </cc1:CalendarExtender>

    1. Then finally debug your page your final output will be as follows.

Leave a Comment

Your email address will not be published.