A common user interface element for entering date values is a popup calendar. For example, virtually all travel and booking websites prompt for dates using a textbox that, when
clicked or focused, displays a calendar that hovers above the rest of the content on the page. Upon clicking a date from the calendar, it disappears and the date value appears
in the textbox. Some websites require that the date be chosen from the calendar; others allow the user to either type in the date or pick it from the calendar.
There have been two previous articles on 4Guys that examined how to create a popup calendar control from the ground up. In Populating
Form Inputs Using the Calendar Control, James Avery showed how to have a Calendar appear in a popup window opened via JavaScript's window.open function.
Scott D. Smith showed how to use the Microsoft ASP.NET AJAX framework's PopupControlExtender to display the Calendar control in Creating
an AJAX-Enabled Calendar Control. There are also a number of third-party Web control vendors that ship popup Calendar controls, which you can peruse at
the Date, Time, and Calendar section of the ASP.NET
Control Gallery.
I recently worked on a project that used the free RJS PopCalendar control and was impressed with its features and ease of use.
This article shows how to add RJS PopCalendar to your ASP.NET web applications and demonstrates some of its functionality. Read on to learn more!
Read More >