How to use the Ajax Control Toolkit Calendar Extender control
|
|
Most real developers should be familiar with the Ajax Control Toolkit by now. For those that aren’t, your web apps just are just so last century! The Ajax Control Toolkit consists of a set of free .net controls that are able to make client-side Javascript calls to update content without appearing to do postbacks. They still do, of course, but you don’t see all the flickering of postbacks, which is an excellent thing. Not only that, but they are simple to use. The Calendar Extender control itself is pretty cool. Basically, you add a textbox, an image and a calendar extender control to a web page. It is also important to ensure that the page has at least one Script Manager control on it, as this is where Ajax organises all its Javascript. Remember that the Script Manager control is found in the Ajax Extension group, and not the AjaxControlToolkit group of the ToolBox. Simple Syntax is ; <ajaxToolkit:CalendarExtender ID=”CalendarExtender1″ runat=”server” TargetControlID=”TextBox1” Format=”dd/MM/yyyy” > </ajaxToolkit:CalendarExtender>
|
|