You can do this on the page level (in Page_Load) or on the application level. If you use the control in many pages, then you should set the path in the Application_BeginRequest of Global.asax:
4. Now you can drag and drop a RJS PopCalendar control to your page. You can easily configure the control through its properties window. Below is a screen shot of the control’s Properties window: Here is the HTML source of the control:
Above is the basic settings for RJS PopCalendar control, and you can see how it works through the Demo 1 from my demo project: http://www.codingbeaver.com/demos/RJSPopCalendarDemo/RJSPopCalendarDemo.aspx Once you are familiar with the Properties window, you will find the control is very powerful and customizable. Below are some examples: 1). Only weekdays can be selected. If you don’t want your users to select any date falls in the weekends, then all you need to do is to set SelectWeekend=False.
The Demo 2 in my demo project shows how it works. 2). Only dates equal to or later than today can be selected.
This Demo 3 shows how it works. 3). Only dates equal to or earlier than today can be selected
This Demo 4 shows how it works. 4). Two RJS PopCalendar controls for two dates, one is the Begin date and the other is the End date. The End date must be later than the Begin date. RJS PopCalendar control for the Begin date:
From-Today=True means the start point of the Begin date is today, and From-Increment=”1” means to move the start point from today to today + 1, which is tomorrow, as the first selectable date of the Begin date. RJS PopCalendar control for the End date:
From-Control=”txtBeginDate” tells the calendar control to link the End date with the Begin date, and From-Increment=”1” means that the first selectable End date is one day after the selected Begin date. This Demo 5 shows how it works. By now, you should be able to make more customization on the calendar control to meet your requirements.