I'm using a login view control that will show a button if the users role is "admin". This button has an onClick event in the code behind page.
If the user is NOT and admin the button doesn't load. That's how I want it to function. Admins get the button, users do not.
Here's my problem.
If a user who is not an admin visits the page the page throws a Compilation error that points to the onClick event. I guessing it's trying to tell me that there is no button associated with this event.
How do I fix this?