Click here to Skip to main content
15,881,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

How to show in a calender control current date is highlighted with red color.






Thanks
Posted

Go here [^], and expand the item labeled Calendar Theming.
 
Share this answer
 
ASP.NET Calendar control has Property for set Today's Date CSS
TodayDayStyle-CssClass
You can apply the Current Date Back Color as
TodayDayStyle-BackColor="Red"

If you want more customization, you can use use DayRender Event
C#
protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
       {
      // Customize your Calendar
       }

Hope this answer your question.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900