all groups > asp.net building controls > january 2008 >
You're in the

asp.net building controls

group:

Is my approach right?


Is my approach right? Diffident
1/28/2008 2:49:02 PM
asp.net building controls:
Hi All,

I would like to customize the ASP.NET's calendar control so that if there
are any events for a particular day it would highlight/bold that day in the
calendar. I use a custom business logic to get the events which is not a
problem.

To bold the days that have events, I am developing a custom control and
overriding the OnDayRender event so that I add the "font-weight:bold"
attribute to the "cell" if there are any events on a particular "day".

Is my approach correct or are there any other better approaches?

Re: Is my approach right? Ray Costanzo
2/8/2008 12:20:40 PM
Seems logical to me. The only thing I'd consider changing is using a CSS
class instead of coding a style attribute into your code-behind. But,
that's just a stylistic choice that doesn't really have anything to do with
the .net side of things.

Ray at work

[quoted text, click to view]

AddThis Social Bookmark Button