Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi friends im newbie for asp.net sqldB .im developing advanced login system.

i stored username/password in sql database table named Account.connections are fine.
when the user login attemps failed that means that user should be blocked by admin.they cant login again.

and next page like unblock.aspx it have blocked user names and a button"unblock" to enable the user login process ...

sorry for bad English. i know it is very critical for me(beginner) helpme adv.thanks to everybody. send me detail definition or tell the logics . plz give some ideas and understand my ques
Posted
Updated 25-Mar-13 8:56am
v2

1 solution

1. Add a column to the UserDetails table as IsActive BOOLEAN
2. When you want to block a user, set this IsActive=1 from the admin page or depending upon your requirement
3. When user logs into the website check

if(user.IsActive==false)
{
Response.Redirect("blocked.aspx");
}
 
Share this answer
 
Comments
sreeprakash248 25-Mar-13 14:58pm    
hi friend sorry.i did't understand ur solution. plz u have to read well my ques again...
bbirajdar 25-Mar-13 22:34pm    
read your question again..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900