title: how to enable and disable button based on user role?
body: <p>I have a role called 'member' and another 'admin' in Asp.Net website.</p>
  
  <p>I did before, that button should be visible or not and i am successful in that,but,i am not able to get the proper code(aspx.cs) to disable the button so that it may be in view but not at all accessible.</p>
  
  <pre><code>&lt;asp:Button ID="Button4" runat="server" PostBackUrl="~/report.aspx" 
     Text="print in report format" Width="173px" 
     Enabled='&lt;%# HttpContext.Current.User.IsInRole("Admin") %&gt;' /&gt; 
  </code></pre>
  
  <p>i want that whenever a member login then button "report" should be disabled for him.</p>