Is there a way to securely disable a button if the user does not have permission to access it? I currently disable it at the Page_Load event:
Page_Load() {
if(!userhasrights) {
btn.Enabled=false;
}
}
However, after rendering, ASP.NET only sets the disabled property to "disabled," which can be easily manipulated by a hacker. How can I ensure my button stays protected while in disabled mode?