when I use that on a control:
Visible="<%# Page.User.IsInRole("admini
I get an error: Parser Error Message: The server tag is not well formed.
<uc:RBox ID="RBox1" runat="server" Visible="<%# Page.User.IsInRole("admini
Isn't there a way to do multiple roles?
Or if the user is NOT in the role?
Main Topics
Browse All Topics





by: CJ_SPosted on 2007-11-29 at 10:17:45ID: 20375838
Two options imo. >' /> or <asp:.... visible='<%# Page.User.IsInRole("admini strator")% >' />)
1) use the provided control (asp:LoginView) and use the appropriate template
2) use a little bit of code (<asp:.... visible='<%# Page.User.IsAuthenticated%