HOW TO RESTRICT NO OF USER REGISTRANTS IN A DAY IN ASP.NET

Posted by Parthibansk under ASP.NET on 4/17/2013 | Points: 10 | Views : 873 | Status : [Member] | Replies : 2
AM DEVELOPING A CAR BOOKING APPLICATION..I HAVE A SCENARIO FOR RESTRICTING NO OF BOOKINGS TO 10 IN A DAY.. IF IT EXCEEDS ALERT MESSAGE SHOULD COME..?

HOW TO CODE FOR THE ABOVE..




Responses

Posted by: Raja_89 on: 4/17/2013 [Member] Starter | Points: 25

Up
0
Down
Hai Parthibansk

Count the no of users registered on that date using sql data adapter ,session [SELECT COUNT(DISTINCT e_id) FROM regsiter] [To get unique users]


If it exceed the n just alert the message


Regards


Parthibansk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hi.Sethu on: 4/17/2013 [Member] Starter | Points: 25

Up
0
Down
Hi Parthibansk,

On PageLoad, check the number of registrations made on today. By this value, you can either display a message on click or the button/link can be disabled when it cross a specific limit.

Sethumadhavan R
[sethu_vb@hotmail.com]

Parthibansk, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response