Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / jQuery

Useful Persian-Arabic-Georgian Calendar ASP.NET

5.00/5 (2 votes)
8 Apr 2013CPOL 19.6K   916  
A Persian calendar with the jQuery UI DatePicker control

Persian Calendar

Introduction

Date picker controls in client side scripting do not support the Persian Jalali calendar. This is a simple calendar using jQuery UI DatePicker that supports more effects and styles... same as jQueryUI's DatePicker control. This is a simple way to use the calendar in your application.

Background

You must have some knowledge about client side scripting and the jQuery library.

Using the Code

  • Link jQuery library and jQuery UI stylesheet (you can replace styles with another style in jQueryUI).
    // Link This files to your webform
    jquery-ui-1.8.14.css
    jquery-1.6.2.min.js
    jquery.ui.datepicker-cc.all.min.js
  • Add the $('#tb_id').datepicker(); script on document ready.
  • Add a server side textbox control change the text box ID to tb_id.
  • That's it, now test it.

Acknowledgement

Special thanks to M.Hasheminezhad http://hasheminezhad.com/datepicker
Happy coding! Smile | :)

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)