HttpContext.Current.User.IsInRole dosent work in site.master page in asp.net webform
please find code snippet as below:
<% if(HttpContext.Current.User.IsInRole("MyRole")) { %>
<li><a id="registerLink" runat="server" href="~/Account/Register">Register New User</a></li>
<% }%>
Go to the complete details ...