Calendar Control
Previous | Home | Next |
The Calendar control is used to display a calendar in the browser.The Calendar Web server control displays a single month calendar that allows the user to select a date and move to the next or previous month. By default, this control displays the name of the current month, day headings for the days of the weeks, days of the month and arrow characters for navigation to the previuos or next month. The class hierarchy for this control is as follows: Object Control WebControl Calendar
Calendar Design Code ************************************************************************* <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Calender.aspx.cs" Inherits="_Default" %>************************************************************************ CS Code When Selected a date *********************************************************************** using System; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Calendar1_SelectionChanged(object sender, EventArgs e) { TextBox1.Text = "You have Selected to:" + Convert.ToString(Calendar1.SelectedDate); } }Calendar
Previous | Home | Next |