Forums

This topic is locked

Counting registered participants

Posted 18 Sep 2002 17:14:33
1
has voted
18 Sep 2002 17:14:33 Mike Willis posted:
Hi folks, I was hoping someone might be able to offer some ideas on a couple of problems I'm having.
Creating an ASP>Javascript application for registering for classes. We need to be able to have the application "lock" a class when it's full.
We created a recordseat to that provides the number of available seats in a particular class.
First problem: If there is no one registered for the class, the detail page (which contains a field from the recordset) shows as blank. As long as there is at least one person registered, everything works fine. How can I make it ignore null registrations?
Second problem: Once I have the recordset working correctly, how can I have the Submit button verify that number is not zero (no seats available) before submitting and redirect the user if it is full?

Thanks in advance

Reply to this topic