Jan 05, 2015, 12:39 PM
How to disable button menu item in cshtml
Hi all,
in my cs html I have a buttom item like the following :
How do I have to do in order to make it woring?
Thanks in advance,
Simone
in my cs html I have a buttom item like the following :
X.Button().ID("Home").Text("Home").HrefTarget("_self").Href("/PastiMese/Index").Icon(Icon.House).Enable(UserPermission.Instance.IsUserInRole(wrapper, "ADMIN") || UserPermission.Instance.IsUserInRole(wrapper, "DSM")||UserPermission.Instance.IsUserInRole(wrapper,"CUO")),
It seems the Enable property doesn't work : the button will alwas appear enabled.How do I have to do in order to make it woring?
Thanks in advance,
Simone