<asp:Calendar ID="Calendar1" runat="server" ondayrender="MyDayRenderer">Then in your code behind, you can check the date and set the color: protected void MyDayRenderer(object sender, DayRenderEventArgs e) { if (e.Day.IsToday) -- Like this check for the Holiday list { e.Cell.BackColor = System.Drawing.Color.Aqua; } if (e.Day.Date == new DateTime(2011,5,1)) { e.Cell.BackColor = System.Drawing.Color.Beige; } }
Mark This Response as Answer -- Chandu http://www.dotnetfunda.com/images/dnfmvp.gif
Login to post response