These are the basic steps to get you started fast.
- Installing OpenYPDatePicker
- Using OpenYPDatePicker
- Give feedback
Installing OpenYPDatePicker
- Download the latest binary release of OpenYPDatePicker.
- Add the control to your project.
Put Ajax.dll into your bin directory.
Make sure you put this code in your web.config in order to enable Ajax communications:
<httpHandlers>
<add verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax" />
</httpHandlers>
Make sure you register the control on the pages where you will use it.
<%@ Register Src="OpenYPDatePickerControl.ascx" TagName="OpenYPDatePickerControl"
TagPrefix="ypdp" %>
Put ajaxMethods.cs and YPDatePicker.cs inside the App_Code
directory.
Put OpenYPDatePickerControl.ascx and OpenYPDatePickerControl.ascx.cs
in the root directory of the application.
You can control which dates can be selected by modifying the ajaxMethods.cs code file under the function
private Dates GetMonth(DateTime FromDate, DateTime ToDate)
{
....
}
Everytime you select a month, this function gets fired asynchronously using AJAX. You can write any long running server code here.
For example, you can call a web service, or query a database to get the dates.
Using OpenYPDatePicker
-
Make sure you register the control on the pages where you will use it.
<%@ Register Src="OpenYPDatePickerControl.ascx" TagName="OpenYPDatePickerControl"
TagPrefix="ypdp" %>
-
Place the control in the webform.
<ypdp:OpenYPDatePickerControl ID="OpenYPDatePickerControl1" runat="server"
CultureFormat="en-US" AllDaysFree="true" ImageDirectory="img"
HighlightHolidays="true" />
Feedback
Did it work? Did you like it? Do you have any hints?
Then please either:
Report a bug
Request a feature
Request support
Consider making even a small donation
|