开发者

Accessing each CalendarDay in Calendar Control without using the DayRender Event

I need to manipulate the appearance of the an ASP.NET calendar control. I have data that I need to display on the calendar control but I don't want to access the data from within the DayRender event. How do I access the Ca开发者_如何学运维lendarDay object that represents each day in the calendar without being within the DayRender event?


Using reflector, it appears that OnDayRender is the only place the CalendarDay class is exposed, so there isn't any other option without developing a custom solution. Even with a custom calendar control, you could only collect the CalendarDay objects within RenderDays/OnDayRender. That is the method they are explicitly created, unfortunately.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜