disable menu items for the asp menu control

H

hal

I'm want to disable some links in the asp menu control when the page loads up
and when a user selects a row in a gridview to re-enable those menu items.
Anyone know of a way to do this or link for examples of how to do this?

Thanks
 
H

hal

I'm able to disable them now, just stuck on how to re-enable them when
a user clicks the select button on the gridview.

protected void SearchUserMenu_MenuItemDataBound(object sender,
MenuEventArgs e)
{
if (GridView1.SelectedIndex < 1)
{
switch (e.Item.Text)
{
case "Security User":
e.Item.Enabled = false;
break;
case "WFM User Group/Location":
e.Item.Enabled = false;
break;
case "Maintain User":
e.Item.Enabled = false;
break;
}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top