I have been using the asp:Menu control for a while now but have only just started to use images with it.

When i click and navigate around the site it works fine but
the problem is that when i click the link for the same page that i am viewing
all the images in my two asp:Menu controls disappear

The asp:Menu is filled from an SQL Table and always returns the same results

This ONLY effects IE as firefox works fine

Demo Site
http://82.163.114.65/full%20site/

ASP CODE:

<asp:Menu ID="mnuTopMain" 
runat="server" CssClass="NavigationMenus" Orientation="Horizontal" 
SkipLinkText="" StaticEnableDefaultPopOutImage="False">
    <DynamicMenuStyle CssClass="NavigationMenusDD" />
    <DynamicSelectedStyle CssClass="NavigationMenus" />
    <DynamicMenuItemStyle CssClass="NavigationMenusDD" VerticalPadding="1px" />
    <StaticItemTemplate>
        <asp:ImageButton ID="imgVTopMenu" 
        runat="server" ImageUrl=<%# Eval("ImageURL") %> 
        ImageAlign="Middle" AlternateText=<%# Eval("Text") %> 
        PostBackUrl=<%# Eval("navigateURL") %> Width="64px" Height="39px" />
    </StaticItemTemplate>
    <DynamicItemTemplate>
        <span id="lblVCode"><%#Eval("Text")%></span>
    </DynamicItemTemplate>
</asp:Menu>

I have fixed it by changing the asp:ImageButton to asp:Image

If anybody has any idea as to why this happed I would like to know


Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.