Fine grained security (view but not update)

  • Thread starter Thread starter Søren D
  • Start date Start date
S

Søren D

I am looking for good practices for allowing certain user roles to see but
but update. For instance a user may have access to a certain updateable grid
but are only allowed to view.

The far most elegant way would of course be to remove the edit/delete/insert
links from the view, but a less elegant solution is also sufficient.

Has anyone published material on the subject or does anyone in here have
some elegant ideas?

TIA,

/Soeren
 
You can make your own gridview inherited from the standard one and add a
ViewOnly property. Override the RowCreated event to hide the links if the
property is set.
 
Hi, I googled on this approach and found some interesting stuff.

Thanks Eliyahu

Eliyahu Goldin said:
You can make your own gridview inherited from the standard one and add a
ViewOnly property. Override the RowCreated event to hide the links if the
property is set.


--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin


Søren D said:
I am looking for good practices for allowing certain user roles to see but
but update. For instance a user may have access to a certain updateable
grid
but are only allowed to view.

The far most elegant way would of course be to remove the
edit/delete/insert
links from the view, but a less elegant solution is also sufficient.

Has anyone published material on the subject or does anyone in here have
some elegant ideas?

TIA,

/Soeren
 
Back
Top