Click here to Skip to main content
12,896,953 members (51,456 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

8.5K views
2 bookmarked
Posted 27 Jun 2011

ASP.NET Calendar Popup without JavaScript

, 27 Jun 2011 CPOL
Rate this:
Please Sign up or sign in to vote.
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

You may also be interested in...

Comments and Discussions

 
GeneralMy vote of 1 Pin
ProgramFOX21-May-13 7:02
memberProgramFOX21-May-13 7:02 
GeneralReason for my vote of 1 jQuery is javascript, while the purp... Pin
Eaverae4-Jul-11 20:35
memberEaverae4-Jul-11 20:35 
GeneralReason for my vote of 5 test Pin
Ragunathan Maniraj30-Jun-11 0:48
memberRagunathan Maniraj30-Jun-11 0:48 
GeneralReason for my vote of 1 It's Javascript Pin
charles henington28-Jun-11 6:07
membercharles henington28-Jun-11 6:07 
GeneralReason for my vote of 1 I hate to break it to you, but jQuer... Pin
AspDotNetDev27-Jun-11 10:24
protectorAspDotNetDev27-Jun-11 10: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.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170424.1 | Last Updated 27 Jun 2011
Article Copyright 2011 by mike2315
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid