Hire my services

If you would like to hire my services, you can now do so by visiting the following link:

Website Design Darlington

Article Statistics

ArticlesLatest Entry
2121-May-2008

Code Bank Statistics

CategoryTipsLatest Entry
Applications420-Feb-2008
Cache118-Apr-2007
Controls926-Jul-2007
CSS107-Sep-2007
Database428-Aug-2007
Dates128-Aug-2007
Email105-Mar-2007
Files123-Apr-2007
HTML101-Mar-2007
Images226-Mar-2007
Pages115-Oct-2007
Sessions122-Nov-2007
SQL Server1518-Mar-2008
Strings309-May-2007
Skip Navigation LinksHome > Code Bank > Controls > Limit selections for the Calendar

Limit selections for the Calendar

Summary: Shows how to set the calendar control to only show certain months

Unlike the .NET windows Calendar control, the ASP.NET control doesn't allow you to set a maximum date for the control. The code below shows how you can limit the user to only go forward to a particular month (you could also adapt this example so the user can't go back beyond a previous month).