Click here to Skip to main content
15,922,015 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
if i login with the username aa and other user also trying to login same username and he login succesfully.how to restrict another person.it means if one person login then second person cannot login with same username. plz help me? i m using mvc with razor.
Posted
Updated 27-Jun-14 20:47pm
v2
Comments
Sergey Alexandrovich Kryukov 28-Jun-14 2:29am    
Not clear. Restrict from what?
—SA
Member 9027346 28-Jun-14 2:47am    
means he can not login with same name

1 solution

restrict in your stored procedure like that .

write procedure:


Create procedure myregistration
(
@id int,
@username varchar(100),
@password varchar(100),
@mobile varchar(100)
)
as
begin

Select username from registration where id=@id

end

Mark as your answer ( Accept Solution) Thank you
 
Share this answer
 

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