Forms Authentication Roles

Discussion in 'ASP .Net' started by Brian Shannon, Aug 16, 2004.

  1. 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
     
    Brian Shannon, Aug 16, 2004
    #1
    1. Advertisements

  2. Brian Shannon

    Teemu Keiski Guest

    Teemu Keiski, Aug 16, 2004
    #2
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.