I have an UltraWebMenu control that is on a master page. The control is populated dynamically when a content web page (i.e. based on the master page) is initially loaded. The menu items are displayed, and the menu behaves as expected (slide, shadow, item spacing etc) but few of the visual properties of the control are rendered correctly. In particular, the background colour and any images are ignored, as are foreground colours. The font size is respected as is the [Bold] attribute but [Italics] is not. This is the case even if a Preset is chosen from the Quick Designer. Nor does it matter how the attributes are set - via declarations of the control, via inline CSS, via an external CSS file or via program code - the menu stoically displays with black letters on a white background.
I have proven that my programming logic is correct by populating an UltraWebMenu on a web page that is not based on a Master page - it renders correctly.
I really need to have the menu integrated into the Master page. Any advice or assistance would be gratefully received.
Kind regards
Paul Shearing, Caterham, EnglandVS 2008 Pro, C#. Infragistics Netvantage for ASP.NET 2008 release 1, XP Pro SP3, 4GB RAM, Loadsa disk space
I forgot to indicate that I had applied application styling to the web application, I have noticed that when I disable app styling for the ultrawebmenu the error message ("Cannot use a leading .. to exit above the top directory") disappears, surely this is application styling related with perhaps the way that css files are referenced? I will continue to investigate and report back any info that I find, my initial questions do still stand however, can the ultrawebmenu be used with a master page?
regards,
John C.
Rather than starting a new thread I thought I would post this in here as it is ultrawebmenu and master page related. I have the following structure to a new web application and am having difficulty using the ultrawebmenu with a master page.
Content pages~/default.aspx~/clientarea/default.aspx~/clientarea/diary.aspx
Master pages~/default.master
The three content pages above are linked to the master page, I have created a site map and bound the ultrawebmenu to the sitemap datasource on the master page(to be clear I am trying to use the ultrawebmenu on a master page), when I try to navigate to the pages in the clientarea folder I am receiving the following error message;
"Cannot use a leading .. to exit above the top directory"
I can lose this problem by moving the master page into a directory something like ~/resources/masters/ however, I then structured the menu to have three levels, home, clientarea as a child of home, and diary as a child of clientarea, when on the homepage the image indicator on the clientarea link worked but when I navigated to the clientarea or the diary page the image to indicate that there was a child of the clientarea link was not displaying correctly, it looked like a broken link, can the ultrawebmenu be used with master pages? Is this a bug? or am I doing something wrong? Personally I don't think it is me, any help would be greatly appreciated...
Version detail informationVS2005 Professional with SP2 (Version 8.0.50727.867 (vsvista.050727.8600)).NET Framework Version 2.50727.3053ASP.NET Version 2.50727.3053UltraWebNavigator Version 8.2.20082.1000
regards
You were right. The offending line was at the start of the CSS file:
body, p, td, th, div, blockquote, dl, ul, ol{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 1em; color: Black; background-color: White; font-style: normal; text-align: left; padding: 0 0 0 0; margin: 0 0 0 0; }
It was the th and td terms that caused the problem. I removed them and the menu control now renders correctly. It was obvious once I knew that menus are rendered using table-based technology.
So, thanks again and I hope that this thread will be of use to others such as DaveL
Kind regard
Paul
I'm having the same problem... We're attempting to move from 8.1 to 8.2. Menu code that worked ok in 8.1 is having trouble in 8.2, in particular related to disabled items.
In our application, the PageLoad sets some menu items to not enabled (menu.Item[0].Enabled = false;) Those items show up rendered with the default item style rather than the disabled item style. If I do enough clicking in the application, the client-side code does eventually get the enabled/disabled styles to apply properly.
I looked at the Page Source from within IE -- and there's the answer! For the items that have enabled=false in the PageLoad, the css class for the item is missing a space. What should be class="MenuMainItemStyle MenuMainDisabledStyle" (two styles) is actually generated as class="MenuMainItemStyleMenuMainDisabledStyle" (missing space between the two style names).
Creating a new style that has the incorrect name and all of the settings from both of the desired styles provides a work-around.
DaveL
Hello Paul,
Glad I was able to help at least a little. You can experiment with the CSS !important clause for styles to force breaking the inheritance chain from parent, this may work in some cases.