Click here to Skip to main content
15,909,091 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Need to understand a signalr chatting code Pin
deepankarbhatnagar12-Jan-15 1:13
professionaldeepankarbhatnagar12-Jan-15 1:13 
GeneralRe: Need to understand a signalr chatting code Pin
Tridip Bhattacharjee12-Jan-15 20:40
professionalTridip Bhattacharjee12-Jan-15 20:40 
AnswerRe: Need to understand a signalr chatting code Pin
Dar Brett13-Jan-15 3:06
Dar Brett13-Jan-15 3:06 
QuestionGIF image as progressbar using AJAX modalpopupExtender Pin
sudevsu8-Jan-15 5:17
sudevsu8-Jan-15 5:17 
AnswerRe: GIF image as progressbar using AJAX modalpopupExtender Pin
jkirkerx8-Jan-15 7:30
professionaljkirkerx8-Jan-15 7:30 
GeneralRe: GIF image as progressbar using AJAX modalpopupExtender Pin
sudevsu8-Jan-15 10:21
sudevsu8-Jan-15 10:21 
GeneralRe: GIF image as progressbar using AJAX modalpopupExtender Pin
jkirkerx8-Jan-15 11:49
professionaljkirkerx8-Jan-15 11:49 
AnswerRe: GIF image as progressbar using AJAX modalpopupExtender Pin
Vimalsoft(Pty) Ltd12-Jan-15 20:51
professionalVimalsoft(Pty) Ltd12-Jan-15 20:51 
QuestionIf else condition fails, in VB.net Pin
sudevsu7-Jan-15 8:33
sudevsu7-Jan-15 8:33 
GeneralRe: If else condition fails, in VB.net Pin
PIEBALDconsult7-Jan-15 9:00
mvePIEBALDconsult7-Jan-15 9:00 
GeneralRe: If else condition fails, in VB.net Pin
sudevsu7-Jan-15 9:14
sudevsu7-Jan-15 9:14 
GeneralRe: If else condition fails, in VB.net Pin
sudevsu7-Jan-15 9:42
sudevsu7-Jan-15 9:42 
GeneralRe: If else condition fails, in VB.net Pin
PIEBALDconsult7-Jan-15 9:44
mvePIEBALDconsult7-Jan-15 9:44 
AnswerRe: If else condition fails, in VB.net Pin
sudevsu7-Jan-15 10:05
sudevsu7-Jan-15 10:05 
GeneralRe: If else condition fails, in VB.net Pin
Vimalsoft(Pty) Ltd12-Jan-15 0:29
professionalVimalsoft(Pty) Ltd12-Jan-15 0:29 
GeneralRe: If else condition fails, in VB.net Pin
sudevsu12-Jan-15 2:38
sudevsu12-Jan-15 2:38 
GeneralRe: If else condition fails, in VB.net Pin
Vimalsoft(Pty) Ltd12-Jan-15 3:42
professionalVimalsoft(Pty) Ltd12-Jan-15 3:42 
GeneralRe: If else condition fails, in VB.net Pin
sudevsu12-Jan-15 4:32
sudevsu12-Jan-15 4:32 
GeneralRe: If else condition fails, in VB.net Pin
Vimalsoft(Pty) Ltd12-Jan-15 5:12
professionalVimalsoft(Pty) Ltd12-Jan-15 5:12 
AnswerRe: If else condition fails, in VB.net Pin
ZurdoDev7-Jan-15 9:11
professionalZurdoDev7-Jan-15 9:11 
QuestionError on clicking Linkbutton of Gridview Pin
sudevsu7-Jan-15 6:47
sudevsu7-Jan-15 6:47 
AnswerRe: Error on clicking Linkbutton of Gridview Pin
sudevsu7-Jan-15 7:15
sudevsu7-Jan-15 7:15 
AnswerRe: Error on clicking Linkbutton of Gridview Pin
Atish K. Singh26-Jan-15 21:58
professionalAtish K. Singh26-Jan-15 21:58 
QuestionSimple Table Reservation Pin
Vmortis7-Jan-15 2:26
Vmortis7-Jan-15 2:26 
So i got this module "Internet Programming" where we should learn ASP.NET and some C#. But what we really learn is some drag and drop functionalities of Visual Studio 2013.
As we don't learn any hard code I do post this thinking its a simple question.

All i need is to insert (if possible) reservations for restaurant tables (a given number of requested seats will require a number of tables to be reserved).

Here are the DB tables i use:

<img src="http://imgur.com/bUPF4sB"> </img>

Link To Tables[^]
Steps:

1- Add restaurant Tables, the sum of seats of all tables its the total seats at the restaurant. DONE

2- Make reservation:
2.1- Get client info: Name, Contact, number of seats to be reserved and date (day, month, year, hour) DONE
2.2- Check availability. If number of available seats for that time is lower than the number of seats requested show massage to user.
3- ...


At 2.2 i don't know how to see if there are seats available to make the reservation.
In some other programming language i would search the seats already reserved for that time and subtract that number to the total seats of the restaurant. Then just by compering the result with the seats requested for the new reservation i could tell if its possible to reserve or not... easy...
But not so easy in the way I'm dealing with ASP.NET on visual studio and using built-in DB manager wit IIS express Server.

Thx in advance for any help Smile | :)
AnswerRe: Simple Table Reservation Pin
sudevsu7-Jan-15 6:50
sudevsu7-Jan-15 6:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.