how can I compare dates in a sqlserver database to
|
ASP.NET 3.5 ProfessionalsIf 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
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?
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#.
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>();