Dear all,

I have a menu in my application and needs to restrict the access to the menus. For example, only administrator needs to access the admin menu.. other users need not view them at all.. how to I display the menu if the user is as admin and hide it if the user is an ordinary user?

I tried doing:
<%if(check-condition){ %>
<ext:Button ID="ToolbarButton2" runat="server" Icon="AsteriskRed" Text="Administrator">
.
.
.
But system says "Code blocks are not supported in this context"

Any suggests?

Thanks in advance,
Best Regards,

Abdel Raoof Olakara