Hi,
I used an Ultra webmenu of 8.1 version.Its working fine in different versions of browsers.But the menu is not trimming according to role based access.Can any one please send me the solution.Thanks in advance.
Regards,
Pallavi.
I checked the role based access programaticallu ,it works fine now.Thank you very much for your help.I can use your code in the future to restrict the user to use controls on the page.
Thanks,
pallavideevi said:I need the web menu trimming for pages not for controls on a page.
What I was suggesting would allow you to show or hide individual items on your menu. You would have to test your roles programmatically. If that's not what you want, I'm failing to understand you.
I need the web menu trimming for pages not for controls on a page.In my project i need menu is trimming according on the roles(i.e. pages are displayed according to the roles).Thanks you very much for your help.
For each item you want to control:
In your markup, assign unique AccessKeys to each menu item: <ignav:Item AccessKey="MyAccessKey" ...> In your page_load handler test your role-based criteria and hide menu items accordingly: Dim MyBooleanCriteria as Boolean = Membership.<whatever> MyMenu.Find("MyAccessKey").Hidden = MyBooleanCriteria
In your markup, assign unique AccessKeys to each menu item:
<ignav:Item AccessKey="MyAccessKey" ...>
In your page_load handler test your role-based criteria and hide menu items accordingly:
Dim MyBooleanCriteria as Boolean = Membership.<whatever> MyMenu.Find("MyAccessKey").Hidden = MyBooleanCriteria
HTH
Thnak you very much.Can you please tell me how to use this code.
Pallavi