Dear forums,
I would like to restrict user rights by hiding controls on the page based on membership. "Theoretically", this would make it impossible for those controls to raise events on the server side. However, I wonder if a malicious user could raise those events by instantiating the controls on the client side anyway (e.g. XSS).
Sample scenario: There is a button on the page that is enabled / visible only if user is member of a certain role (rights checked on Page Load event).
Can disabling/hiding the button be bypassed by some tricky way of postback that would invoke the associated click event anyway?
Thanks for advice.