Click here to Skip to main content
15,791,576 members
Articles / Web Development / CSS

ASP.NET Calendar Popup without JavaScript

Rate me:
Please Sign up or sign in to vote.
1.22/5 (5 votes)
27 Jun 2011CPOL 15.4K   2   5
Using jQuery, we have a very simple solution for this.Add jQuery and CSS in the head tage and these two lines of JavaScript:<script...

Using jQuery, we have a very simple solution for this.

Add jQuery and CSS in the head tage and these two lines of JavaScript:

<script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
<script src="Scripts/jquery.ui.core.js" type="text/javascript"></script>
<script src="Scripts/jquery.ui.widget.js" type="text/javascript"></script>
<script src="Scripts/jquery.ui.tabs.js" type="text/javascript"></script>
<script src="Scripts/jquery.ui.datepicker.js" type="text/javascript"></script>

<script type="text/javascript">
$(function () {


Then in the form, you need to add the class to the text box:

<input type=textbox class=datepicker >


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

Written By
CEO M & L Services
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

GeneralMy vote of 1 Pin
Thomas Daniels21-May-13 8:02
mentorThomas Daniels21-May-13 8:02 
GeneralReason for my vote of 1 jQuery is javascript, while the purp... Pin
Eaverae4-Jul-11 21:35
Eaverae4-Jul-11 21:35 
GeneralReason for my vote of 5 test Pin
Ragunathan Maniraj30-Jun-11 1:48
Ragunathan Maniraj30-Jun-11 1:48 
GeneralReason for my vote of 1 It's Javascript Pin
charles henington28-Jun-11 7:07
charles henington28-Jun-11 7:07 
GeneralReason for my vote of 1 I hate to break it to you, but jQuer... Pin
AspDotNetDev27-Jun-11 11:24
protectorAspDotNetDev27-Jun-11 11:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.