how to check javascript menu with roles

Posted by Vineeth1311 under JavaScript on 5/7/2009 | Views : 1454 | Status : [Member] | Replies : 2
i had a javascript dropdown menu .and i had to change my menu according to the user roles.is it possible if how?




Responses

Posted by: Vuyiswamb on: 5/7/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Good Afternoon Vineeth1311

It is Possible. You can check if the user is supposed to use that menu and disabled it if he does not suppose to use it. I use infragistics menu controls a lot of time and there are times where i have to diabled the menu.

This example works for infragistics Menu control so am not sure how you created your control in Javascript.

e.Item.Items.Index(4).Enabled = true;



Thank you for posting at dotnetfunda

Vuyiswa Maseko


Thank you for posting at Dotnetfunda
[Administrator]

Vineeth1311, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nareshgoradara on: 5/7/2009 [Member] Starter

Up
0
Down
You can display javascript menu as per role, for this create script runtime and register to page.

It works.

Vineeth1311, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response