HOW TO CODE FOR THE ABOVE..
HOW TO RESTRICT NO OF USER REGISTRANTS IN A DAY IN ASP.NET
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..?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Posted Apr 17, 2013, 8:15 AM
But i want to suggest , you could use WCF Service in this scenario
Anurag SarkarPosted Apr 17, 2013, 8:08 AM
string check="select record from table";
SqlCommand cmd=new SqlCommand(check,con);
SqlDataReader dr=new SqlDataReader();
dr=cmd.ExecuteReader();
if(dr.Count>10)
{
MessageBox.Show("Limit Exceeded");
}