- Hosting Article & Tutorial

ASP.NET Hosting Tutorial – How To Create A Simple Calendar Using AJAX

How To Create A Simple Calendar Using AJAX – In this article, we will show you how to create a simple, dynamic and usable calendar by implementing AJAX to input the selected date into a textbox (submission) and make it easier to read. We will use Microsoft’s ASP.NET AJAX Extension for Visual Studio.

How to Create A Simple Calendar Using ASP.NET AJAX

Step 1

First, you have to create an ‘AJAX-Enabled Web Site’ in Visual Studio .NET, this will give you ScriptManager tag and also the AJAX assembly references in the Web.config:


Step 2

Now, it’s time to create a textbox control and a calendar control. Just follow this code:

Remember  that the calendar has a OnSelectionChanged attribute, and that both the controls are within the UpdatePanel tags. This will ensure that these controls are refreshed when the trigger is activated.

Step 3

The code below is executed when the selection of the calendar control is changed (when the user clicks on a new date). When this happens, the method PutDateInBox is called and the date is input into the textbox control from the calendar control.

Hope it works for you!

ASP.NET 4.6 Hosting with HostForLIFE.eu

HostForLIFE.eu is European Windows Hosting Provider which focuses on Windows Platform only. They deliver on-demand hosting solutions including Shared hosting, Reseller Hosting, Cloud Hosting, Dedicated Servers, and IT as a Service for companies of all sizes. They have customers from around the globe, spread across every continent. They have served the hosting needs of the business and professional, government and nonprofit, entertainment and personal use market segments.

awards-03.pngHostForLIFE.eu is Microsoft No #1 Recommended Windows and ASP.NET Hosting in European Continent. Our service is ranked the highest top #1 spot in several European countries, such as: Germany, Italy, Netherlands, France, Belgium, United Kingdom, Sweden, Finland, Switzerland and many top European countries.

HostForLIFE.eu Hosting is the first host to offer its customer all the new features of the ASP.NET 4.6 Hosting. You can simply deploy your ASP.NET 4.6 website via their world-class Control Panel or conventional FTP tool. This ASP.NET 4.6 Hosting is part of HostForLIFE.eu service and it is provided free of charge.