Home > DeveloperSection > Articles > ASP.Net AJAX Control Toolkit: CalendarExtender

ASP.Net AJAX Control Toolkit: CalendarExtender


AJAX AJAX 
Ratings:
4 Comment(s)
 10699  View(s)
Rate this:

ASP.Net AJAX Control Toolkit: CalendarExtender

The Toolkit contains some new controls that have AJAX functionality and many control extenders. The control extenders attach to any other control to enhance the functionality.

These Toolkit download from the Microsoft site or by help of net and these toolkit associate with visual studio by adding .dll through add reference. Toolkit are attach with toolbox by right click on toolbox and click on add choose item and give a name AJAX Control toolkit.

 

 

ASP.Net AJAX Control Toolkit Extenders

The control extends the behavior of ASP.NET server controls with additional JavaScript on the client side and also server side.

CalendarExtender:

It provide simplicity in select the date from month. It contains main key properties: TargetControlID and Format.

How we implement the CalendarExtender

 

Step1: we use the following control on aspx page

 

Example:

<body>

    <form id="form1" runat="server">

    <div>

<%--Using ScriptManager or ToolkitScriptManager 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: Run the project

       Press the mouse button on textbox

 

                    Select the date from calendar

 

This is the simple demonstration of CalendarExtender in the web application.


Help me out!!!!

By mohan kumar on   5 years ago
Can u please explain me all the date formats available and how to use them in Ajax Calendar Control with examples!!!!

ASP.Net AJAX Control Toolkit: CalendarExtender

By Haider M Rizvi on   5 years ago

Hi Mohan Kumar,

If you want your queries to get noticed and get solved in less period of time then try to ask your question on our Forum Section.

Thanks


ASP.Net AJAX Control Toolkit: CalendarExtender

By Rohit Kesharwani on   5 years ago
Hi,

You can change the value of Format attribute of CalendarExtender control in order to change the date format according to your requirement:
For e.g.
Format="dd/mm/yyyy"
Format="yyyy/mm/dd"
Format="mm/dd/yyyy" etc.




@Rohit Kesharwani

By mohan kumar on   5 years ago
Thanks Rohit Kesharwani for sharing your knowledge with me..

Don't want to miss updates? Please click the below button!

Follow MindStick