ASP.NET Web Forms Calendar
It is used to display selectable date in a calendar. It also shows data associated with specific date. This control displays a calendar through which users can move to any day in any year.
We can also set Selected Date property that shows specified date in the calendar.
To create Calendar we can drag it from the toolbox of visual studio.
This is a server side control and ASP.NET provides own tag to create it. The example is given below.
Server renders it as the HTML control and produces the following code to the browser.
This control has its own properties that are tabled below.
Calendar Property Window
In this example, we are implementing calendar and displaying user selected date to the web page.
This view shows calendar to the browser.
It shows date selected by the user at the web page. A screenshot is attached below.