RE: Security Attribute on Event?
- From: v-schang@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
- Date: Wed, 18 May 2005 02:01:13 GMT
Hi Xenophon,
Welcome to ASPNET newsgroup.
Regarding on the program on using Declarative role based security through
..net 's PrincipalPermission attribute in asp.net app, here are some of my
understanding:
The PrincipalPermissionAttribute will have the same behavior as we
programmatically use PrincipalPermission class instance to demand the
permission. Like:
PrincipalPermission permission = new PrincipalPermission(null, "Role1",
true);
permission.Demand();
So what's the behavior on your page is you use the above programmatical
demand?
Also, I'm not quite sure on the "quietly failed" you mentioned, when and
how does it happen? Is it only happen when you apply the security demand on
a helper function rather than control's event handler function?
If convenient, would you also send me a test page so that I can perform
the same test on my side?
Looking forward to your response. Thanks,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
.
- Follow-Ups:
- Re: Security Attribute on Event?
- From: xenophon
- Re: Security Attribute on Event?
- References:
- Security Attribute on Event?
- From: xenophon
- Security Attribute on Event?
- Prev by Date: Re: javascript confirm fires after deletion instead of before
- Next by Date: Re: Long time in Render phase on production server
- Previous by thread: Security Attribute on Event?
- Next by thread: Re: Security Attribute on Event?
- Index(es):
Relevant Pages
|