www.webdeveloper.com
Results 1 to 8 of 8

Thread: calendar

  1. #1
    Join Date
    Sep 2004
    Posts
    25

    calendar

    hi hi...anyone can help me? cause i wanna make a calendar and when user click on a date for appointment, it'll display a page for booking appointment. how am i going to write the coding for the claendar to enable ppl to click on the date and allow them to book appointment? thank you

  2. #2
    Join Date
    Nov 2003
    Location
    Derby, UK
    Posts
    87
    I assume you are talking about ASP.NET, in which case you can use the "System.Web.UI.WebControls.Calendar" control.

    You can (and I quote from MSDN) "Use the Calendar control to display a single month of a calendar on a Web page. The control allows you to select dates and move to the next or previous month."

    Tom
    I am not young enough to know everything - Oscar Wilde

  3. #3
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222
    You can make a calander from scratch of course too, but this would mean a lot of code. If you use the asp.net calander control it would be a lot less work (though it does not give you as much freedom).

  4. #4
    Join Date
    Sep 2004
    Posts
    25
    okie thank u. but is that e onli code need to enter?? cause presently i had a calendar and i had a label1 and i enable it to display the sentence, the date u selected is ..... but i wan another feature is to show another webform when i click on any date? can any1 pls help....

  5. #5
    Join Date
    Sep 2004
    Posts
    25
    also i would also like to ask abt where do i insert the 'System.Web.UI.WebControls.Calendar'? In the html page or the VB page? For ur information, i using the ASP.NET.

  6. #6
    Join Date
    Nov 2003
    Location
    Derby, UK
    Posts
    87
    Best thing you can do is read the MSDN page about the .NET Calendar web control...
    http://msdn.microsoft.com/library/de...ClassTopic.asp

    You can either set the Calendar in your .aspx file, or (as I assume you're using a VB code-behind file) you can create the Calendar in the code-behind file and attach it as a child to a control in the .aspx file.

    If you are interested in particular things happening when you select a date, think about handling the public "SelectedChanged" event (which involves a post-back of the page containing the control).
    Or even handling the "DayRender" event, which will allow you to alter the individual days as they are being rendered.
    I am not young enough to know everything - Oscar Wilde

  7. #7
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222

  8. #8
    Join Date
    Sep 2004
    Posts
    25
    hi all, realli thank u guy for the advice and tips. i'm able to improve my project with the resource available. but i stil cant enable the event-handler when someone click on a date and i have another page to display.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles