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>
<formid="form1"runat="server">
<div>
<%--Using ScriptManager or ToolkitScriptManager according toolkit version--%>
<asp:ScriptManagerID="ScriptManager1"runat="server"></asp:ScriptManager>
<%--using textbox--%>
<asp:TextBoxID="TextBox1"runat="server"></asp:TextBox>
<%-- using calenderextendar here--%>
<cc1:CalendarExtenderID="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.
mohan kumar
20-Oct-2011Chris Anderson
20-Oct-2011You 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.
Anonymous User
20-Oct-2011Hi 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
mohan kumar
20-Oct-2011