CALENDER CONTROL

AIM:

To write an ASP.NET program to design a calendar control.

ALGORITHM:

1. Open Microsoft Visual Studio 2010
2. Click new project -> Asp.net web application with C#
3. Solution explorer right click -> add -> new item -> webform with C#
4. Place required controls for the application
5. write the necessary coding in C#
6. Run the application.

AD.xml

                
            

FORE COLOR.ASPX.CS :


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication16
{
publicpartialclassWebForm1 : System.Web.UI.Page
{
protectedvoid Page_Load(object sender, EventArgs e)
{

}

protectedvoid Calendar1_SelectionChanged(object sender, EventArgs e)
{
TextBox1.Text = Calendar1.TodaysDate.ToShortDateString();
}
}
}

OUTPUT:

program 4 output

RESULT:

Thus the above program has been executed sucessfully verified and output is shown.

NEXT PROGRAM

PREVIOUS PROGRAM