GeekArticles
Database
SQL ServerCreating an AJAX-Enabled Calendar Control
Author: aspnet.4guysfromrolla.com |
Published: 20th Feb 2008 |
Visited: 63 times |
Add CommentFiled in: SQL Server
Go to any travel or event booking website and you'll find the same user interface for collecting date information: the Calendar. Providing such an interface
in an ASP.NET application is a breeze, thanks to the built-in Calendar Web control. There are two downsides to ASP.NET's Calendar control: first, it is
not very useful when selecting dates far into the future or past, as you can only navigate to the next or previous month; and, second, the Calendar does not
use AJAX techniques, so each click, be it selecting a date or moving to the next or previous month, requires a full postback.
Mehmet Genc addressed this first shortcoming in Extending
the Calendar Control's Date Navigation by showing how to add month and year drop-down lists. But Mehmet's article was written in 2004 and since then AJAX-enabled
websites have become all the rage. I decided it was high time to update Mehmet's custom Calendar control to support AJAX. Specifically, I implemented
the AJAX-enabled Calendar control as a User Control. The User Control renders a TextBox control that, when clicked, displays a Calendar control from
which the user can select the date. Like with Mehmet's Calendar, users can quickly jump to a particular month or year by using two drop-down lists.
And best of all, the user experience is very responsive.
Read on to learn more!
Read More >
Read Article Sponsored Links
Related Articles
• Advancing from Ajax Based Frameworks Frameworks have been in focus lately because of the integration of jQuery to Microsoft. Because of jQuery’ s feat and also of Microsoft frameworks were largely talked about again and compared. Unfortunately there are times wherein a developer would stand up and say the framework is better ...
• Fallback Patterns for Ajax No matter how much the developer ensures that the application goes smoothly something will go wrong eventually. It may not happen today or the next few months but certain conditions will happen such as hardware or update incompatibility. That will lead to errors in executing an Ajax based applicatio ...
• Implementing WSDL in Ajax Ajax based applications are highly intricate that its functions should be reused as much as possible to ease the developer’ s job in building other applications. Debugging them as raw functions especially the web enabled services could be a little bit challenging but could be done with the ...
• New Ajax Wrapper for Upcoming IE8 Ajax continues to adapt to new technologies in the efforts to make the programming technique more appealing to different developers. This popular client side technique is often discussed by developers who are aiming to provide better user interaction. Although there are concerns with security suppor ...
• Linking SOA with Ajax Service-Oriented Architecture or SOA is the enterprise’ s offer for their users in attaining interactive user friendly and highly efficient websites and applications. Different programming languages are being evaluated by different business in order to select the suitable tool for developi ...
• Rich Text Editors for Ajax Rich text editors are important tools for developing websites of different languages including Ajax. Through rich text editors developers would be able to reconfigure websites easily. These applications usually come small but with a lot of features that will ensure that the website could fully funct ...
• Ajax XParser XParser is a simple yet highly effective component that could be launched in any Ajax based application. This is often used in parsing RSS and Atom feeds to the website. However it could be more than a mere parser. XParser could be used to retrieve certain elements from specific resources. These ele ...
• Ajax XPath XML is a very important part of Ajax. It strings the data together so that it could be read in the client side. This mark-up language ensures that data compatibility across browsers and applications are there. Developers who are using frameworks could easily handle XML because it has been used in ot ...
• Three Powerful Profilers for Ajax Profilers are simple tools that could be plugged into the application so that developers will have performance data of their application. These are non-obtrusive to the application as the server and the client relationship is independently observed by the profiler.
The importance of this tool becom ...
• Google Hosting Ajax Libraries One of the concerns developers will always face in building Ajax based applications using frameworks are the libraries. There are hundreds of them available online and most of them are free to download and could be used in your website.
These libraries could be loaded in your server and will be use ...