kmusaied / GregHijCalendar

ASP.NET Hijri/Gregorian Date Picker Custom Control

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

This is an ASP.NET custom DatePicker control. It allows you to switch between Hijri and Gregorian dates easily.

Features:

  1. Plug and Play.
  2. Support Gregorian and Hijri calendars Dates
  3. Allow the user to convert between Hijri / Gregorian dates.
  4. Customizable 4. Change style layout 5. change messages 6. Dual or Single Calendars.
  5. Validatable contorl using validation controls.

Getting Started

1- Install package from nuget (https://www.nuget.org/packages/GregHijCalendar/)

2- Register control

<%@ Register Assembly="GregHijCalendar" Namespace="KhaledLabs" TagPrefix="cc1" %>

3- Add Control

<cc1:GregHijCalendar ID="GregHijCalendar1" 
         RegisterJQuery ="false"
         DefaultCalendar ="Hijri"
         DualCalendar ="true"
         GregorianCalendarCaption ="G"
         HijriCalendarCaption ="H"
         InvalidDateErrorMessage="Invalid Date"
          runat="server" />  

4- Configure Style:

add the following css classes to your style sheet to change the layout of the control:

.calTbl: table layout class
.dayBox: day textbox layout class
.monthBox: month textbox layout class
.yearBox: year textbox layout class

About

ASP.NET Hijri/Gregorian Date Picker Custom Control


Languages

Language:C# 70.7%Language:JavaScript 22.5%Language:ASP 6.9%