Forms Authentication Roles

B

Brian Shannon

If you are using roles and assigning them from a SQL 2000 DB to the generic
principal can you still use the web.config file to check authorization?

All the articles I have read has the code behind
If user.IsInRole("Admin")
'Do whatever
End IF

Can't you use the web.config file if populating roles form the DB to check
if you are authorized? It seems foolish if you have to use code behind. If
you want to change roles then you have to recompile your project.

Any feedback is appreciated
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top