Allowed roles/users from the web.config

  • Thread starter Thread starter Alexey Smirnov
  • Start date Start date
A

Alexey Smirnov

Is it possible to get a list of allowed roles/users for a single page on the
site, which use a role based forms authentication?

<authorization>
<allow roles="*">
<deny users="?" />
</authorization>

I know, to view the web.config using System.Xml is not a big problem, is
there any standard implementation to access that configuration?

Thank you.
 
Hello Alexey,

Use WebConfigurationManager, which allows to open any section of config

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

AS> Is it possible to get a list of allowed roles/users for a single
AS> page on the site, which use a role based forms authentication?
AS>
AS> <authorization>
AS> <allow roles="*">
AS> <deny users="?" />
AS> </authorization>
AS> I know, to view the web.config using System.Xml is not a big
AS> problem, is there any standard implementation to access that
AS> configuration?
AS>
AS> Thank you.
AS>
 
Back
Top