Advertise with us

AJAX Calendar Extender Control

I am trying to use AJAX calendar extender control in my ASP.NET application.
Please provide me any sample of code.

thx
Last updated:9/30/2010 10:58:14 AM

2 Answers

Amit Singh
Amit Singh

we use AJAX calendar extender control by this example
Step1: we write this code on aspx page

<body>
    <form id="form1" runat="server">
    <div>
<%--Using ScriptManager orToolkitScriptManager according toolkit version--%>
    <asp:ScriptManager ID="ScriptManager1"runat="server"></asp:ScriptManager>
    <%--using textbox--%>
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    <%-- using calenderextendar here--%>
    <cc1:CalendarExtender ID="CalendarExtender1" runat="server"TargetControlID ="TextBox1"Format="MMM/dd/yyyy">
    </cc1:CalendarExtender>
    </div>
    </form>
</body> 

Step2: Runthe project

and see the result

Answer