Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

displaying appointments in a grid

Status
Not open for further replies.
Jul 17, 2002
22
US
Does anyone know how or where I can get a grid that will display a weekday list of appointments by hours.
ie:

8:00 John Doe- team meeting
8:30
9:00
9:30
10:00
10:30

And say 8:00 - 9:00 would be shaded grey.

Any ideas, suggestions - would be greatly appreciated.
 
Does this need to bind to a database or another data source?
Is the grid updateable?
Have you checked out the Microsoft Exchange facilities for Web access? (this includes facilities for viewing your outlook calendar/appointments via a browser).

I guess that there are commercial grid's around - plenty more in the asp.net arena though. But...

A grid is just an html table. You can easily construct one in code using a loop - in your case, generating the required time increments using dateadd() or similar. Simply adjust the colour in code too.

<table>
<% dtTime = #8:00#
for iLoop = 0 to 6
'TODO: Get the text to display in this slot
sMessage = &quot;Some Text&quot;
'TODO: Determine the row colour
sRowColour = &quot;silver&quot;
response.write &quot;<tr bgcolor=&quot; & sRowColour & &quot;><td>&quot; & formatDateTime(dtTime, vbShortTime) & &quot;</td><td>&quot; & sMessage & &quot;</td></tr>&quot;
dtTime = dateadd(&quot;n&quot;, 30, dtTime)
next
%>
</table>
(Content Management)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top