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.
Leave Comment
4 Comments