Databases Reference
In-Depth Information
FIGURE 3.2 Modified DateTime field template with calendar drop-down.
The modified field template, DateTime_Edit.ascx , is shown in Listing 3.7. This example
uses the CalendarExtender control from the AJAX Control Toolkit, but you can use any
other ASP.NET control from your favorite component vendor. The CalendarExtender is
associated with the TextBox by specifying its TagetControlID property. Using the
PopupButtonID property, it is also associated with an ImageButton that users can click to
display the calendar drop-down.
NOTE
The AJAX (Asynchronous JavaScript and XML) Control Toolkit is an extension of the
ASP.NET framework developed by Microsoft to enhance client-side behavior of the stan-
dard WebForms controls. It is an open source project hosted on CodePlex and available
for download at http://AjaxControlToolkit.CodePlex.com .
The AJAX Control Toolkit comes in a ZIP archive that you need to extract to a directory
on your hard drive. Before you can begin using AJAX controls, you need to add the
downloaded AjaxControlToolkit.dll as a reference to your web application project in
Visual Studio.
 
Search WWH ::




Custom Search