Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Professionals
|
ASP.NET 3.5 Professionals If you are an experienced ASP.NET programmer, this is the forum for your 3.5 questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Professionals section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 30th, 2009, 08:32 AM
Authorized User
 
Join Date: Mar 2009
Posts: 74
Thanks: 5
Thanked 0 Times in 0 Posts
Default how can I compare dates in a sqlserver database to

Please how can I compare dates in a sqlserver database to dates on a calendar in order to determine the dates that a particalar room is free for booking.

I am trying to create a room reservation system, however I am having some strains.
here is what I am trying to do:
a customer should be able to view available dates for a particular room.I mean dates on which this room is free, so that he does not book a room that has already been taken on the time period he specifies he will be staying in the hotel.
please can anyone give me some help on this?

. Or is there another way I can do this. Thanks
 
Old November 30th, 2009, 09:20 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Can you please not double-post your messages (in the Basic and the Pro forums)? Once is enough as your message will be read anyway.

That said, you may want to take a look at the book ASP.NET 2.0 Instant Results (http://www.wrox.com/WileyCDA/WroxTit...471749516.html) It features a whole chapter discussing an appointment booking system.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old December 1st, 2009, 10:53 AM
Authorized User
 
Join Date: Mar 2009
Posts: 74
Thanks: 5
Thanked 0 Times in 0 Posts
Default Thanks

Thanks for the link,the codes appear to be in vb, I am writing in csharp, never written much vb codes so I guess I will have to give it try converting the codes to c#.
 
Old December 1st, 2009, 11:13 AM
Authorized User
 
Join Date: Mar 2009
Posts: 74
Thanks: 5
Thanked 0 Times in 0 Posts
Default

I am trying to retrieve data from sqlser table, using linq to sql stored proc.
However the code encounters one error,it says " ; expected ". on the following line "hdc.CheckRoomAvailability();". Part of the code with the problem is below.If I cooment this part, the application runs fine. I cannot seem to trace the error, the same method works fine on other applications, any hint?

public List<CheckRoomAvailability> CheckRooms()
{
HotelDataContext hdc= new HotelDataContext();
List<CheckRoomAvailability> Rooms = newList<CheckRoomAvailability>();

ISingleResult<CheckRoomAvailabilityResult>Rooms
hdc.CheckRoomAvailability();

.......
.......

}





Similar Threads
Thread Thread Starter Forum Replies Last Post
how can I compare dates in a sqlserver database to ysfkay ASP.NET 3.5 Basics 3 December 4th, 2009 11:00 AM
How to compare two dates lakshmi_annayappa Javascript 1 September 3rd, 2007 08:52 AM
How do I compare 2 dates? Lucy Classic ASP Basics 1 May 3rd, 2005 07:24 PM
Compare dates langer123 Classic ASP Basics 2 April 16th, 2005 08:57 AM
Compare Dates in JS apd8x Javascript 4 June 16th, 2003 08:27 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.