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: Thu, 09 Aug 2007 08:18:05 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    Joey
          2    Aidy


Programmatically Modify Value In Web.Config   
Is this possible?

I have an app where we are using forms authentication and are allow
editing/changing of security role names. Since I have set permissions
with <location> tags in web.config (i.e. allow roles="Administrator"),
I will also need to modify the values there.

TIA,
JP
Date:Thu, 09 Aug 2007 08:18:05 -0700   Author:  

Re: Programmatically Modify Value In Web.Config   
web config is just an xml file so you can read/alter/save it using the 
normal xml namespaces.  However note that doing so will cause your 
application to be restarted.

"Joey"  wrote in message 
news:1186672685.131265.268790@g4g2000hsf.googlegroups.com...

> Is this possible?
>
> I have an app where we are using forms authentication and are allow
> editing/changing of security role names. Since I have set permissions
> with <location> tags in web.config (i.e. allow roles="Administrator"),
> I will also need to modify the values there.
>
> TIA,
> JP
>
> 
Date:Thu, 9 Aug 2007 16:32:30 +0100   Author:  

Google
 
Web dotnetnewsgroup.com


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