Click here to Skip to main content
15,925,868 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Helo can anyone help out?

I am developing a ASP.NET application and i want users
to access the various pages base on their roles, and i dont
want to configure web.config file manually since the various
roles are going to be create programmatically.

I'm using form authentication

How can i achieve this
Posted
Updated 22-Sep-10 9:27am
v2

 
Share this answer
 
Did you read about Forms Authentication?

You can use Configuration tool to create the whole database yourself.
http://msdn.microsoft.com/en-us/library/ff647070.aspx[^]

:)
 
Share this answer
 
Use Membership and Role Provider for this.
Membership:
http://odetocode.com/Articles/427.aspx

Role:
http://odetocode.com/Articles/428.aspx

Use "Web.SiteMap" to access the various pages base on their roles.

Please Vote if this helps 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