Quering PrincipalSecurityAttributes on class

From: Pasi Häkkinen (pasi.hakkinen_at_newsgroup.nospam)
Date: 05/25/05


Date: Wed, 25 May 2005 05:01:01 -0700

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



Relevant Pages

  • Re: IE within profiles
    ... This information is stored in the registry, encrypted, and is not ... transferrable (which is a good thing for security and privacy reasons). ... Hyperlinks used to ensure advice is current ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • RE: links denied
    ... After hours of frustration and no success, I disenable Norton Internet ... Security, and now all my hyperlinks in e-mails work. ... "Robert Anderson" wrote: ...
    (microsoft.public.windowsxp.general)
  • Re: How to disable hypelink warning message?
    ... First, within Access, you must set Macro Security to Low. ... The network security will override what is set in Access. ... Access warning message about hyperlinks that I have to click through. ...
    (microsoft.public.access.formscoding)
  • Re: Hyperlinks in Help
    ... The hyperlinks were disabled in an Office 2000 security ... Hyperlinks that take us to another Help window work. ...
    (microsoft.public.office.misc)