CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2004
    Posts
    80

    ASP Calendar Work Week

    I am using the asp calendar to display information pulled from a database onDayRender. What I am trying to do is to get rid of Saturday and Sunday to give more room for the data in the Mon-Fri boxes. Anyone know how I could achieve this? Thanks.

    -Dakota
    Last edited by doomsday123; March 15th, 2006 at 02:59 PM.

  2. #2
    Join Date
    Jun 2003
    Location
    Toronto
    Posts
    805

    Re: ASP Calendar Wrok Week

    This may work:

    cal.WeekendDayStyle.Width=0;

  3. #3
    Join Date
    Sep 2004
    Posts
    80

    Re: ASP Calendar Wrok Week

    I tried that but they are still there for some reason.

  4. #4
    Join Date
    Jun 2003
    Location
    Toronto
    Posts
    805

    Re: ASP Calendar Wrok Week

    i dont know then, i have never removed the days from the cal. Can you just make the actual calendar bigger in width and height? will that serve your purposes?

    Alternatively you can look at extending the calendar class and override the method that puts the days of the calendar up for display. The days are most likely in a collection class and you could enumerate over the sat, sun, or maybe remove them all toghether, if you ovverride it you could (in theory) create a public property that passes an arraylist of days you want in the cal, or just set a property to showWeekends true or false.

    hth,.
    mcm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured