HomeCommunityControl GalleryForm ControlsDate, Time, & CalendarASP.net Persian Date Controls

ASP.net Persian Date Controls



(4) Submit a Review

2,819 Downloads

10,999 Views


Description

PersianDateControls library contains 5 controls that simplify developing asp.net Farsi websites.

1. PersianDateTextBox is the most useful control. This control shows a Textbox to user and gets a Persian date value. It can be directly bind to a database and convert date value to/from Georgian under the hood. It can also show a fully client side date picker to select a date from. For using date picker you need a PersianDateScriptManager too.

2. PersianDateScriptManager adds scripts needed for date picker to page. This date picker can be used together with a PersianDateTextBox or any other input control. This control should be used just once in a page and supports one or more date pickers in page. you can disable selecting some days, for exam disable selection of Fridays.

3. PersianDateCalendar displays a Persian calendar which is fully client side.

4. PersianDateLable to display a Persian date value. It can be directly bind to a database and converts and displays a Georgian date value, for example in a grid.

5. PersianDateValidator validates a Persian date value entered into an input control, if user type it manually.


Controls Features:
- All date conversions are server side and based on System.Globalization.PersianCalendar.
- Fully client side Date Picker and Date Validator.
- Supports both IE and Firefox.
- Supports leap years.
- Controls can be bound even to nullable fields.
- Flexible interface which is based on CSS styles and theme.
- Ajax Enabled.
- Some week days or dates can be prevented from selecting.
- Direct month and year selector.
- Open picker on defined textbox mouse events.
- Supports specifying a default date.

Syntax Example

&lt;pdc:PersianDateTextBox ID="PersianDateTextBox" runat="server" DefaultDate="1363/10/22" IconUrl="~/Calendar.gif" SetDefaultDateOnEvent="OnDoubleClick" ShowPickerOnTop="False" Width="130px"&gt;<br /> &lt;/pdc:PersianDateTextBox&gt;<br /> &lt;pdc:PersianDateValidator ID="PersianDateValidator1" runat="server" ControlToValidate="PersianDateTextBox"&gt;<br /> &lt;/pdc:PersianDateValidator&gt;<br /> &lt;pdc:PersianDateScriptManager ID="PersianDateScriptManager" runat="server" CalendarCSS="PickerCalendarCSS" <br />CalendarDayWidth="50" FooterCSS="PickerFooterCSS" ForbidenCSS="PickerForbidenCSS" ForbidenDates="[0,11,22],[0,12,29],[0,0,13]" ForbidenWeekDays="5,6" <br />FrameCSS="PickerCSS" HeaderCSS="PickerHeaderCSS" SelectedCSS="PickerSelectedCSS" WeekDayCSS="PickerWeekDayCSS" WorkDayCSS="PickerWorkDayCSS"&gt;<br /> &lt;/pdc:PersianDateScriptManager&gt;

Screenshots

Reviews

Submit a review

appreciation

Reviewed by: amyrh on Tuesday, May 31, 2011

5 Stars

سلام دوست عزیز در مورد کنترلهای بسیار خوبی که تهیه کردی کمال تشکر دارم.

Thanks

Reviewed by: imanabidi on Tuesday, July 20, 2010

5 Stars

خیلی عالیه ، دستت درد نکنه

oooooooooooofffff

Reviewed by: bijan_hami on Thursday, March 12, 2009

1 Stars

kiram too konet hamede kooni koseta bokhoram pegahe jende be baba nagofte boodi ba in hamede koooni oftadid roo ham. koset ra ham liside dokhmare azizam

thanks

Reviewed by: pegah_hami on Thursday, January 08, 2009

5 Stars

Thanks Hamed. It was great. I really needed a date picker control which prevents selecting some special days. Regards Pegah