ASP.NET Configuration Manager
-
Hi , I understand that ASP.NET Configuration Manager can be used to control access rules for a website , but that is only on a developer's side, But If I would like to create a page on my website that an admin user can control the users/ roles of a website, Is there a way that I can use the Configuration Manager as an API to its functionalities.? Or is there any other way to do it Please respond if you know , Thank You
Happy Programming! Regards, ctrlnick !
-
Hi , I understand that ASP.NET Configuration Manager can be used to control access rules for a website , but that is only on a developer's side, But If I would like to create a page on my website that an admin user can control the users/ roles of a website, Is there a way that I can use the Configuration Manager as an API to its functionalities.? Or is there any other way to do it Please respond if you know , Thank You
Happy Programming! Regards, ctrlnick !
The ConfigurationManager Class does not grant or deny access, it provides access to read configuration settings stored in .config files e.g. a web.config. You can use the web.config to create access rules to certain directories and/or pages. Then couple this with either the built in membership provider or create your own customer provider. Here is a link for more information: http://msdn.microsoft.com/en-us/library/system.configuration.configurationmanager.aspx[^] Hope this helps!