Location Tags in web.config

J

Joey

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
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top