Hi:
I'm implementing the DHTML menu; I want to disable the style of the menu option (and path) of the selected menu item, because more than one menu item can go to the same page, and all change the style.
I was reading the style properties and I didn't know which one to use.
Thanks,
Lulu
Selected menu Item - Style
Hi:
I'm sorry; English is not my first language…
I'm developing in .NET using c# and I created a web user control that generates the JavaScript dynamically from a database according to the user permissions and I added that user control to all my pages so the menu is displayed all the time…
Some of the menu options have the same url. Lets say for example that 2 menu options call the same url:
aI("text=Sample 1;url=UnderMaintenance.aspx;");
aI("text=Sample 7;url=UnderMaintenance.aspx;");
Both menu options will have a style when one is selected.
What I want to know is the style properties I need to change in order avoid the menu options to change when the url is posted.
Thanks,
Lulu
I'm sorry; English is not my first language…
I'm developing in .NET using c# and I created a web user control that generates the JavaScript dynamically from a database according to the user permissions and I added that user control to all my pages so the menu is displayed all the time…
Some of the menu options have the same url. Lets say for example that 2 menu options call the same url:
aI("text=Sample 1;url=UnderMaintenance.aspx;");
aI("text=Sample 7;url=UnderMaintenance.aspx;");
Both menu options will have a style when one is selected.
What I want to know is the style properties I need to change in order avoid the menu options to change when the url is posted.
Thanks,
Lulu
Hi:
Sorry... I found my error... I was defining twice the 'pagecolor' & 'pagebccolor' styles and that is why it wasn't showing my styles on the current page menu item.
Thanks,
Lulu
By the way, for the ones interested on dynamically create the javascript in .NET you will need to:
- Delete the script line that calls the menu_data.js
- In the code create an string that contains all of what is included in the menu_data.js including the menu options that can be queried from a table and on the page load when the page is not posted back add this:
Page.RegisterStartupScript("MenuDetail", yourstringvariable);
Sorry... I found my error... I was defining twice the 'pagecolor' & 'pagebccolor' styles and that is why it wasn't showing my styles on the current page menu item.
Thanks,
Lulu
By the way, for the ones interested on dynamically create the javascript in .NET you will need to:
- Delete the script line that calls the menu_data.js
- In the code create an string that contains all of what is included in the menu_data.js including the menu options that can be queried from a table and on the page load when the page is not posted back add this:
Page.RegisterStartupScript("MenuDetail", yourstringvariable);