[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Diffident

1/28/2008 10:49:00 PM

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?

Thanks!
1 Answer

Ray Costanzo

2/8/2008 5:21:00 PM

0

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

"Diffident" <Diffident@discussions.microsoft.com> wrote in message
news:BD7D1040-BD0D-4A11-A88E-FC453B12873F@microsoft.com...
> 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?
>
> Thanks!