can we randomly select mutiple days in calendar?

Discussion in 'ASP .Net Web Controls' started by haiwen, Oct 2, 2003.

  1. haiwen

    haiwen Guest

    Hello, everyone,

    we can select multiple days in the calendar control, but
    it is either a whole week or a whole month. Is it possible
    to randomly select a couple of days?

    Thanks a lot,

    haiwen
    haiwen, Oct 2, 2003
    #1
    1. Advertising

  2. Hello Haiwen,

    Thanks for posting in the group.

    There is no direct way to achieve it in asp.net calendar web control. A
    workaround is to add a literal control that's just a link to a javascript
    function which adds the day to a hidden field and submits the form. Then we
    could pull the day out of the hidden field server side and add it to
    SelectedDates.

    It's pretty much a trick and it requires a round trip just to add a day, so
    the best way is to write a own calendar control to achieve it.

    Does that answer your question?

    Best regards,
    Yanhong Huang
    Microsoft Online Partner Support

    Get Secure! - www.microsoft.com/security
    This posting is provided "AS IS" with no warranties, and confers no rights.

    --------------------
    !Content-Class: urn:content-classes:message
    !From: "haiwen" <>
    !Sender: "haiwen" <>
    !Subject: can we randomly select mutiple days in calendar?
    !Date: Thu, 2 Oct 2003 14:26:42 -0700
    !Lines: 9
    !Message-ID: <1be501c3892b$df846260$>
    !MIME-Version: 1.0
    !Content-Type: text/plain;
    ! charset="iso-8859-1"
    !Content-Transfer-Encoding: 7bit
    !X-Newsreader: Microsoft CDO for Windows 2000
    !X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
    !Thread-Index: AcOJK9+BYgeMP1DeSd6bKBOCbkqvQA==
    !Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols
    !Path: cpmsftngxa06.phx.gbl
    !Xref: cpmsftngxa06.phx.gbl
    microsoft.public.dotnet.framework.aspnet.webcontrols:15080
    !NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
    !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols
    !
    !Hello, everyone,
    !
    !we can select multiple days in the calendar control, but
    !it is either a whole week or a whole month. Is it possible
    !to randomly select a couple of days?
    !
    !Thanks a lot,
    !
    !haiwen
    !
    Yan-Hong Huang[MSFT], Oct 3, 2003
    #2
    1. Advertising

  3. Hello Haiwen,

    Thanks for the quick response.

    I suggest you refer to
    http://www.asp.net/ControlGallery/default.aspx?Category=43&tabindex=2.
    There are many samples on calendar web server control.

    Does that answer your question?

    Best regards,
    Yanhong Huang
    Microsoft Online Partner Support

    Get Secure! - www.microsoft.com/security
    This posting is provided "AS IS" with no warranties, and confers no rights.

    --------------------
    !Content-Class: urn:content-classes:message
    !From: "haiwen" <>
    !Sender: "haiwen" <>
    !References: <1be501c3892b$df846260$>
    <>
    !Subject: RE: can we randomly select mutiple days in calendar?
    !Date: Fri, 3 Oct 2003 06:19:16 -0700
    !Lines: 77
    !Message-ID: <156601c389b0$f20725f0$>
    !MIME-Version: 1.0
    !Content-Type: text/plain;
    ! charset="iso-8859-1"
    !Content-Transfer-Encoding: 7bit
    !X-Newsreader: Microsoft CDO for Windows 2000
    !X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
    !Thread-Index: AcOJsPIHEZ3pLGfdQ82WKxDlXdsf6g==
    !Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols
    !Path: cpmsftngxa06.phx.gbl
    !Xref: cpmsftngxa06.phx.gbl
    microsoft.public.dotnet.framework.aspnet.webcontrols:15091
    !NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
    !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols
    !
    !Hello Yanhong,
    !
    !Thanks a lot of for your answer.Could you give me any good
    !about how to write my own calendar?
    !
    !Thanks again,
    !
    !haiwen
    !
    !>-----Original Message-----
    !>Hello Haiwen,
    !>
    !>Thanks for posting in the group.
    !>
    !>There is no direct way to achieve it in asp.net calendar
    !web control. A
    !>workaround is to add a literal control that's just a link
    !to a javascript
    !>function which adds the day to a hidden field and submits
    !the form. Then we
    !>could pull the day out of the hidden field server side
    !and add it to
    !>SelectedDates.
    !>
    !>It's pretty much a trick and it requires a round trip
    !just to add a day, so
    !>the best way is to write a own calendar control to
    !achieve it.
    !>
    !>Does that answer your question?
    !>
    !>Best regards,
    !>Yanhong Huang
    !>Microsoft Online Partner Support
    !>
    !>Get Secure! - www.microsoft.com/security
    !>This posting is provided "AS IS" with no warranties, and
    !confers no rights.
    !>
    !>--------------------
    !>!Content-Class: urn:content-classes:message
    !>!From: "haiwen" <>
    !>!Sender: "haiwen" <>
    !>!Subject: can we randomly select mutiple days in calendar?
    !>!Date: Thu, 2 Oct 2003 14:26:42 -0700
    !>!Lines: 9
    !>!Message-ID: <1be501c3892b$df846260$>
    !>!MIME-Version: 1.0
    !>!Content-Type: text/plain;
    !>! charset="iso-8859-1"
    !>!Content-Transfer-Encoding: 7bit
    !>!X-Newsreader: Microsoft CDO for Windows 2000
    !>!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
    !>!Thread-Index: AcOJK9+BYgeMP1DeSd6bKBOCbkqvQA==
    !>!Newsgroups:
    !microsoft.public.dotnet.framework.aspnet.webcontrols
    !>!Path: cpmsftngxa06.phx.gbl
    !>!Xref: cpmsftngxa06.phx.gbl
    !>microsoft.public.dotnet.framework.aspnet.webcontrols:15080
    !>!NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
    !>!X-Tomcat-NG:
    !microsoft.public.dotnet.framework.aspnet.webcontrols
    !>!
    !>!Hello, everyone,
    !>!
    !>!we can select multiple days in the calendar control, but
    !>!it is either a whole week or a whole month. Is it
    !possible
    !>!to randomly select a couple of days?
    !>!
    !>!Thanks a lot,
    !>!
    !>!haiwen
    !>!
    !>
    !>.
    !>
    !
    Yan-Hong Huang[MSFT], Oct 6, 2003
    #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. David Stockwell
    Replies:
    2
    Views:
    688
    Anna Martelli Ravenscroft
    Sep 20, 2004
  2. Gerrit
    Replies:
    0
    Views:
    381
    Gerrit
    Sep 20, 2004
  3. Terry Reedy
    Replies:
    0
    Views:
    420
    Terry Reedy
    Sep 20, 2004
  4. Replies:
    5
    Views:
    458
    Bo Yang
    Nov 2, 2006
  5. kirke

    list of days between two days

    kirke, Oct 19, 2006, in forum: Javascript
    Replies:
    7
    Views:
    132
    Julian Turner
    Oct 20, 2006
Loading...

Share This Page