Click here to Skip to main content
15,907,687 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
hi!

I'm creating some log-in restrictions whether the user is an admin or guest. If it's an admin then he would have all the privileges(add, delete, update, etc) but the guest can only see some data but can't update, etc.

Should I use some hidden fields? If so then how can I hide some fields in the log-in form in vb.net so that it can be used in the next window form?

I'm new to this. Your answer will be a great help for me.
Thank you!!
Posted

 
Share this answer
 
well i think in you case Form Authentication part will give you the correct way.

Try the Link Below ,it will definitely help you.
[^]
 
Share this answer
 
Use session for this store user info like his/her role in session an check the privileges according to that.
search on google you will find lots of examples.

--Pankaj
 
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