Say I have a DetailsView
with a bunch of fields, and I want only certain kinds of users to edit a few of them. They're too few to split them into another DetailsView
, so what I'm thinking is to find some way to only allow a user to edit them based on some code-behind logic, effectively making them read-only at will.
I feel it's important to mention that the fields are both TemplateField
s, not normal BoundField
s with ReadOnly
properties.
Any ideas? For some reason the required functions don't jump at me from reading the documentation.
Oh and I need eveyone to see their specific values, I just want to restrict edit access to them.