DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Wed, 08 Aug 2007 07:24:38 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    Joey


Location Tags in web.config   
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
Date:Wed, 08 Aug 2007 07:24:38 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us