Click here to Skip to main content
14,389,695 members

ASP.NET Calendar Popup without JavaScript

Rate this:
1.22 (5 votes)
Please Sign up or sign in to vote.
1.22 (5 votes)
27 Jun 2011CPOL
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 () {
$(".datepicker").datepicker();

});
</script>

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


<input type=textbox class=datepicker >

License

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

Share

About the Author

mike2315
CEO M & L Services
United States United States
No Biography provided

Comments and Discussions

 
GeneralMy vote of 1 Pin
Thomas Daniels21-May-13 8:02
mveThomas Daniels21-May-13 8:02 
GeneralReason for my vote of 1 jQuery is javascript, while the purp... Pin
Eaverae4-Jul-11 21:35
MemberEaverae4-Jul-11 21:35 
GeneralReason for my vote of 5 test Pin
Ragunathan Maniraj30-Jun-11 1:48
MemberRagunathan Maniraj30-Jun-11 1:48 
Reason for my vote of 5
test
GeneralReason for my vote of 1 It's Javascript Pin
charles henington28-Jun-11 7:07
Membercharles 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.

Alternative
Tip/Trick
Posted 27 Jun 2011

Tagged as

Stats

12.5K views
2 bookmarked