S
Sunfire
Is it possible to test for a hidden value (asp:HiddenField) in a page to
determine what link should be disabled? Example would be this: On a page
(AboutUs.aspx for this example), put a <asp:HiddenField> element on the page
and give it an id of "AboutUs". Then in the layout.master page where the
menu is do this in the load event:
switch (AboutUsHiddenField.Value) {
case "AboutUs":
MainMenu.Items[1].Enabled=false;
break;
//...
}
Or is there a better way to do this...
determine what link should be disabled? Example would be this: On a page
(AboutUs.aspx for this example), put a <asp:HiddenField> element on the page
and give it an id of "AboutUs". Then in the layout.master page where the
menu is do this in the load event:
switch (AboutUsHiddenField.Value) {
case "AboutUs":
MainMenu.Items[1].Enabled=false;
break;
//...
}
Or is there a better way to do this...