title: Hiding LinkButton
body: <p>In VB.NET, I have a <code>LinkButton</code> that, when clicked, creates a report.  We want to disable this functionality based on whom is logged into the system.  I have a session variable to indicate whether this should be visible or not but when I set <code>idLinkButton.visible = False</code>, it has no effect.  Any ideas on what I need to do to be able to turn this on and off?</p>
  
  <p>'code-behind<br>
  ' in page_load<br>
  If Not Convert.ToBoolean(HttpContext.Current.Session("HideReports")) Then<br>
          PDFbutton.Visible = True<br>
  Else If Convert.ToBoolean(HttpContext.Current.Session("HideReports")) And   HttpContext.Current.Session("LoadFromConsole") Then<br>
          PDFbutton.Visible = True<br>
  end if  </p>