Is my approach right?

Discussion in 'ASP .Net Building Controls' started by Diffident, Jan 28, 2008.

  1. Diffident

    Diffident Guest

    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

    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?

    Diffident, Jan 28, 2008
    1. Advertisements

  2. Diffident

    Ray Costanzo Guest

    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
    Ray Costanzo, Feb 8, 2008
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.