954,219 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

asp:Menu Images Disappearing

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>
ptaylor965
Junior Poster
170 posts since Oct 2006
Reputation Points: 16
Solved Threads: 19
 

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

ptaylor965
Junior Poster
170 posts since Oct 2006
Reputation Points: 16
Solved Threads: 19
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You