RE: coding Access Rules
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
- Date: Mon, 02 Jul 2007 04:48:11 GMT
Hi Gary,
From your description, you're building a custom web management applicationwhich can help user configure the membership user & role info of the
application. Currently, you're wondering how to add the "access
rule"(authorization) management into the system, correct?
As for the "access rules", it is actually persisted as <authorization>
setting in application's web.config file, so if you want to provide service
to programmatically manage this setting, you need to also programmatically
change the web.config file. In .net framework 2.0, you can utilize the
configuration API to do this. And the "<authorization> section is
associated with the System.Web.Configuratrion.AuthorizationSection class.
#AuthorizationSection Class
http://msdn2.microsoft.com/en-us/library/system.web.configuration.authorizat
ionsection.aspx
You can use code to open the configuration object of the specified path in
your application and then locate the "AuthorizationSection" and manage
rules in it.
Hope this helps.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- References:
- coding Access Rules
- From: GaryDean
- coding Access Rules
- Prev by Date: coding Access Rules
- Next by Date: Re: Profiles
- Previous by thread: coding Access Rules
- Next by thread: Re: Profiles
- Index(es):