I've inherited a website that we are trying to build some security into w/o major rewrite.
This is in ASP 2.0 with VB codebehind. We are using ASP.net forms based security and that is working well.
We now need to add a user role that will have READONLY access to a bunch of the existing forms. These forms have most any server side controls on them.
I want to cycle through the existing controls on a page (and recursively drill into containers like gridviews and datagrids) to set controls readonly based on the current user's role membership.
This is pretty straightforward for textboxes and such, but for grids I am lost.
I'm used to VFP where this would be trivial. It looks like it is trivial in Winforms too.
How can this be done in ASP.NET 2.0???
Help?
Bill Kuhn - MCSE
bkuhn@kuhngroup.com
The Kuhn Group, Inc.
This is in ASP 2.0 with VB codebehind. We are using ASP.net forms based security and that is working well.
We now need to add a user role that will have READONLY access to a bunch of the existing forms. These forms have most any server side controls on them.
I want to cycle through the existing controls on a page (and recursively drill into containers like gridviews and datagrids) to set controls readonly based on the current user's role membership.
This is pretty straightforward for textboxes and such, but for grids I am lost.
I'm used to VFP where this would be trivial. It looks like it is trivial in Winforms too.
How can this be done in ASP.NET 2.0???
Help?
Bill Kuhn - MCSE
bkuhn@kuhngroup.com
The Kuhn Group, Inc.