I have an aspx page develeoped with two panals. The first acts as a input paramater's screen when the user presses a button a query is run and the data is returned to a second panal. On this second panal I have a FormView id = FormView1 in the form view in the item template I have three buttons. What I want to do is when the panal loads check and see if the user is in a specific role if they are then make the two hidden buttons visible if not then don't. The two buttons names are:
The default mode for these buttons is visible = false. I want to change them to true. In my code behind I have setup the load event but when I enter the button id's here it can't resolve them if I add a dim statement to tell them it is a button then I get a null reference error. I know it has to be something in calling of the buttons but for the life of me I am missing it. Please help.
Protected Sub asc_results_pnl_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles asc_results_pnl.Load
If User.IsInRole("asc_update") Then