SIGN UP MEMBER LOGIN:    
ARTICLE

JavaScript Calendar Control in ASP.NET 2.0

Posted by Raj Kumar Articles | ASP.NET Programming October 01, 2007
The problem with ASP.NET Calendar control is it refreshes the page every time any event is fired. To avoid this, we have to use JavaScript Calendar control.
Reader Level:
Download Files:
 

In this article, I am going to explain, how we can use a JavaScript Calendar control in ASP.NET 2.0. In this article I am using a JavaScript file (Calendar.js) and a CSS file (Calendar.css). JavaScript file has all functions and methods, which are used in calendar and CSS file has all calendar style sheets. 

You can call JavaScript file on page like this:

<script language="javascript" src=Calendar.js type="text/javascript"></script>

and stylesheet file like this:

<link href=Calendar.css rel="stylesheet" type="text/css">

Here is a snapshot of Calendar control.


Figure 1:

You can call JavaScript file on a Button click event handler. 

Login to add your contents and source code to this article
share this article :
post comment
 

This code is note working IE9. Plese Help

Posted by ajay sharan May 07, 2012

1. i want to show calendar under textbox where date show. 2. here when i select date but it did not show date in the textbox. 3. i use mozilla.

Posted by tawhidul islam Apr 10, 2012

As per you posted the code of "Calendar using javascript" - This code does not working correctly please check if possible

Posted by sunil khunger Jan 11, 2012

with out using input box how to get the date into text box?please send the code for getting the date into text box when we clicked on date button control

Posted by rani g Apr 15, 2011

means it's working or not???

Posted by Raj Kumar Apr 01, 2011
Become a Sponsor
PREMIUM SPONSORS
  • Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
    The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
Become a Sponsor