Location Tags in web.config

Discussion in 'ASP .Net' started by Joey, Aug 8, 2007.

  1. Joey

    Joey Guest

    We are using location tags to control access to certain folders in our
    website. That has worked great. But now we need to be able to allow
    the customers to change the role names through the website interface.
    I have handled all needed changes in the code, except for one.

    In web.config we have access controlled with a line like...

    <allow roles="Administrators">

    In my code I have a static Website class that keeps track of the
    current Administrators role name, no matter what they name it. I
    access it with something like
    "Website.AdministratorsSystemRoleNumber". But I can't do that in
    web.config. And if I can't do that, then how can I control the access?

    I do not want to add another attribute (i.e. user-specified role name,
    etc..) to my security roles table. I just want to figure out how to
    use what we already have, which is one table with two attributes: int
    RoleId and nvarchar(25) Name.

    Any help is appreciated.
    JP
     
    Joey, Aug 8, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. john smith
    Replies:
    0
    Views:
    451
    john smith
    Jan 6, 2004
  2. Natan

    web.config and location...

    Natan, Apr 15, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    633
    Curt_C [MVP]
    Apr 15, 2004
  3. mike

    web.config location

    mike, May 12, 2004, in forum: ASP .Net
    Replies:
    10
    Views:
    1,107
  4. Benny Ng
    Replies:
    9
    Views:
    10,087
    Benny Ng
    Oct 13, 2005
  5. CSharpner
    Replies:
    0
    Views:
    1,094
    CSharpner
    Apr 9, 2007
Loading...

Share This Page