Is my approach right?

Discussion in 'ASP .Net' 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. Hi There,

    You can try day render event of Calendar control and check your condition!

    --
    Thanks,
    Sanket Sirotiya
    ()
    "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!
    Sanket Sirotiya, Jan 29, 2008
    #2
    1. Advertising

  3. Diffident

    Diffident Guest

    If you read my post carefully you would have noticed that I am using the same
    event that you suggested. I wanted to check if that was the right approach or
    not!

    "Sanket Sirotiya" wrote:

    > Hi There,
    >
    > You can try day render event of Calendar control and check your condition!
    >
    > --
    > Thanks,
    > Sanket Sirotiya
    > ()
    > "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!

    >
    >
    Diffident, Jan 29, 2008
    #3
    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:
    865
  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:
    297
    Michael Lang
    Nov 6, 2006
  4. Diffident

    Is my approach right?

    Diffident, Jan 28, 2008, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    712
    Ray Costanzo
    Feb 8, 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