Click here to Skip to main content
15,850,103 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I am developing a web based application about bills which you can control lots of bills in detail that belong to you.In project,there should be three kinds of user:
1.Admin
2.Member
3.Anonymous
There are two questions I want to ask you..
Firstly,How can I do the role management at web.config file ?
Secondly, when user logins ;how can I detect who it is ;Is it admin or member ?
There are two different databases which has the accounts of admins and members.

Thanks in advance for your replies..
Posted

 
Share this answer
 
My friend.The solution for all your question is in membership.You can add roles and all the things you asked for using it.And here are some useful links :

http://msdn.microsoft.com/en-us/library/ff648345.aspx[^]

http://msdn.microsoft.com/en-us/library/yh26yfzy.aspx[^]

http://www.asp.net/moving-to-aspnet-20/tutorials/membership[^]

Good luck !
 
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