calendar control problem in ASP.Net
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
In calendar webcontrol,I want to inactive some of the dates in a particular month of the calendar and also i want to assign a single color to a particular date in a particular month of the calendar.
Neelima
-
In calendar webcontrol,I want to inactive some of the dates in a particular month of the calendar and also i want to assign a single color to a particular date in a particular month of the calendar.
Neelima
hi K.R.Neelima, this code may help u, private void Calendar1_DayRender(object sender, System.Web.UI.WebControls.DayRenderEventArgs e) { if(e.Day.Date.Day<=29 && e.Day.Date.Month==01) { e.Cell.Enabled=false; } if(e.Day.Date.Day==29 && e.Day.Date.Month==01) { e.Cell.ForeColor=Color.SkyBlue; } }