P
Pasi Häkkinen
Hello,
I am applying PrincipalSecurityAttributes on class definition to force
role-based security on my ASP.NET pages. Is it somehow possible to query the
needed security roles for a certain page without maybe creating an instance
of that page class and check possible security exception? I'm providing
hyperlinks to these secured pages (and amongs them) and I would like to check
the permission to decide whether the hyperlink should be visible or not (..is
the logged-in user in correct roles or not)...
Or maybe there is a better approach to this problem altogether?
Thanks in advance,
Pasi
I am applying PrincipalSecurityAttributes on class definition to force
role-based security on my ASP.NET pages. Is it somehow possible to query the
needed security roles for a certain page without maybe creating an instance
of that page class and check possible security exception? I'm providing
hyperlinks to these secured pages (and amongs them) and I would like to check
the permission to decide whether the hyperlink should be visible or not (..is
the logged-in user in correct roles or not)...
Or maybe there is a better approach to this problem altogether?
Thanks in advance,
Pasi