Click here to Skip to main content
15,851,242 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can any one explain about calendar extender control..
how can i implement tat..


If You uses vs 2010,Ajax controls are inbuilt.
else download ajaxcontroltoolkit dll.
register this dll in aspx page
<%@ Register Assembly="AjaxControlToolkit"  Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit"%>

take a text box on form in which you want to take date.
pass TargetControlID=ID of TextBox
<ajaxtoolkit:calendarextender id="cal1" behaviorid="bcal1" xmlns:ajaxtoolkit="#unknown">
        TargetControlID="txtDatefrom" runat="server"></ajaxtoolkit:calendarextender>
Share this answer
Add ajaxtoolkit dll to your project. In order to do so watch this video.[^]

After enabling your website for AJAX features,then you are ready to you calendar control by drag and drop. for more information of calendar control visit this link[^]
Share this answer
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:TextBox ID="txtStartDate" runat="server" OnChange="javascript:return ValidateDate(this);"></asp:TextBox>
                                <cc1:CalendarExtender ID="txtStartDate_CalendarExtender" runat="server" Enabled="True"
                                    TargetControlID="txtStartDate" PopupButtonID="ibtnCalender1">
                                <asp:ImageButton ID="ibtnCalender1" runat="server" ImageUrl="images/calendar.gif"
                                    Width="26px" />
                                &nbsp;&nbsp; <b>EndDate : </b>
Share this answer

Check following video to find out how to setup Ajax calendar extender-[^]
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900