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
    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!
    Diffident, Jan 28, 2008
    #1
    1. Advertising

  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

    "Diffident" <> wrote in message
    news:...
    > 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!
    Ray Costanzo, Feb 8, 2008
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. suraj
    Replies:
    37
    Views:
    864
  2. Morten Snedker

    Executescalar, the right approach

    Morten Snedker, Oct 23, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    442
    Flinky Wisty Pomm
    Oct 23, 2006
  3. Steve Y.

    Right approach in layers/tiers

    Steve Y., Nov 5, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    296
    Michael Lang
    Nov 6, 2006
  4. Diffident

    Is my approach right?

    Diffident, Jan 28, 2008, in forum: ASP .Net
    Replies:
    2
    Views:
    362
    Diffident
    Jan 29, 2008
  5. Diffident

    Is my approach right?

    Diffident, Jan 28, 2008, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    128
    Diffident
    Jan 28, 2008
Loading...

Share This Page