dynamically Enabling or disabling some item in menu
-
Dear All, I am quite new to dotnet. Currently developing web application using asp.net and C#(Visual studio 2005).i WANT TO khow whether it is possible possible to disable some of the item for some user. Please guide me
regards imran khan
-
Dear All, I am quite new to dotnet. Currently developing web application using asp.net and C#(Visual studio 2005).i WANT TO khow whether it is possible possible to disable some of the item for some user. Please guide me
regards imran khan
items means, what ? Do you mean control ? If that was your question, Just check the UserId in the session and make the visibility property to false.
Hope, am clear.
-
Dear All, I am quite new to dotnet. Currently developing web application using asp.net and C#(Visual studio 2005).i WANT TO khow whether it is possible possible to disable some of the item for some user. Please guide me
regards imran khan
The above menu i give the value for parent and child menu I disable the New loan preference submenu for (int i = 0; i < Menu1.Items.Count; i++) { if (Menu1.Items[i].Value == "11")//Menu { for (int j = 0; j < Menu1.Items[i].ChildItems.Count; j++)//Submenu { if (Menu1.Items[i].ChildItems[j].Value == "1") { Menu1.Items[i].ChildItems[j].Enabled = false; return; } } } } sorry for my english
-
Dear All, I am quite new to dotnet. Currently developing web application using asp.net and C#(Visual studio 2005).i WANT TO khow whether it is possible possible to disable some of the item for some user. Please guide me
regards imran khan
-
The above menu i give the value for parent and child menu I disable the New loan preference submenu for (int i = 0; i < Menu1.Items.Count; i++) { if (Menu1.Items[i].Value == "11")//Menu { for (int j = 0; j < Menu1.Items[i].ChildItems.Count; j++)//Submenu { if (Menu1.Items[i].ChildItems[j].Value == "1") { Menu1.Items[i].ChildItems[j].Enabled = false; return; } } } } sorry for my english
Thanks A lot.it worked. thanks once again
regards imran khan