I am trying to hide a ASP.NET Table row, but below code part is not working, I don't know what is wrong with the syntax.
Not Working:
<asp:TableRow runat="server" Visible='<%# Roles.IsUserInRole("ARoleThatIsNotInDatabase") %>'>
</asp:TableRow>
Working:
<asp:TableRow runat="server" Visible='False'>
</asp:TableRow>
Working:
if (System.Web.Security.Roles.IsUserInRole("ARoleThatIsNotInDatabase"))
{//Not Entering this area as expected
}