Re: role based security to enable controls
From: richlm (richlm_at_nospam.nospam)
Date: 02/25/05
- Next message: John Francisco Williams: "Windows user controls in a web page: Security"
- Previous message: Nicole Calinoiu: "Re: Medium Level Trust and Reflection"
- In reply to: Kevin Meiresonne: "role based security to enable controls"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 25 Feb 2005 23:46:18 +0100
One approach is to perform a role-based security check in the
"VisibleChanged" event (or override "OnVisibleChanged" if appropriate).
You can then set the Enabled property appropriately.
In your Form_Load event you could iterate the Controls on the form and
attach the event handler.
You can assign roles to controls declaratively in code with a custom
attribute, and then use reflection in the event handler code to get the
attribute.
- Next message: John Francisco Williams: "Windows user controls in a web page: Security"
- Previous message: Nicole Calinoiu: "Re: Medium Level Trust and Reflection"
- In reply to: Kevin Meiresonne: "role based security to enable controls"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|