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
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
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).
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....
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.
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
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.
Bookmarks