.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old June 17th, 2003, 11:54 AM
BioMash BioMash is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 1 BioMash User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Help with Calendar code....

I am trying to display a calendar with certain dates marked a different colour. I have a db table and each record includes a start and end date for each event which can span anything from 3 days to 6 weeks.<br><br>I have a class bookings.db which passes the id of the calendar ( there are several on site) into the sproc GetBookings and returns the relevant data from the db, i have included the sproc below.<br><br>I now need to access that data from my page behind and colour all dates that fall between the start and end date of each booking in red.<br><br>This is where I come up short I have not used the clalendar control before and would appreciate some help in getting this finished.....<br>I have started with, any help would be appreciated.....<br><div class="msgQuoteWrap"><div class="msgCode"><br> Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br> 'Set Calendar to todays Date<br> BookingsCalendar.SelectedDate = Now.Date()<br><br> ' Obtain the list of bookings from the Bookings table<br> ' and bind to the Calendar Control<br> Dim bookings As New Site.BookingsDB()<br></div></div><br><br>SPROC:<br><div class="msgQuoteWrap"><div class="msgCode"><br>CREATE PROCEDURE GetBookings<br>(<br> @ModuleID int<br>)<br>AS<br>SELECT<br> ItemID,<br> BookedByUser,<br> CustomerName,<br> CustomerTel,<br> CustomerEmail,<br> StartDate,<br> EndDate,<br> PropertyName<br><br>FROM<br> Bookings<br><br>WHERE<br> ModuleID = @ModuleID<br> AND<br> StartDate >= GetDate()<br>GO<br></div></div><!-- Edit --><p><i>Last Edited : 6/17/2003 8:56:32 AM GMT</i></p>

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > Help with Calendar code....


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT