Click here to Skip to main content
Click here to Skip to main content
Alternative Tip
Go to top

ASP.NET Calendar Popup without JavaScript

, 27 Jun 2011
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

Comments and Discussions

 
GeneralMy vote of 1 PinmemberProgramFOX21-May-13 7:02 
GeneralReason for my vote of 1 jQuery is javascript, while the purp... PinmemberEaverae4-Jul-11 20:35 
GeneralReason for my vote of 5 test PinmemberRagunathan Maniraj30-Jun-11 0:48 
GeneralReason for my vote of 1 It's Javascript Pinmembercharles henington28-Jun-11 6:07 
GeneralReason for my vote of 1 I hate to break it to you, but jQuer... PinprotectorAspDotNetDev27-Jun-11 10:24 

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

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

| Advertise | Privacy | Mobile
Web03 | 2.8.140926.1 | Last Updated 27 Jun 2011
Article Copyright 2011 by mike2315
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid