Dear all,
I have a calendar control in my webpage. So when i run the webpage then current day will be highlighted with red color.
How to do this?
thanks
Show current day in Calender control
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Satyapriya NayakRank #47 · 31.5K reputationPosted Jan 8, 2012, 8:18 AM EST
Try this...
In DayRender event of calender control write the below code
Protected Sub Calendar1_DayRender(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DayRenderEventArgs) Handles Calendar1.DayRender
If e.Day.IsToday Then
e.Cell.BackColor = Drawing.Color.Red
End If
End Sub
Thanks