DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   ASP.NET (http://www.daniweb.com/forums/forum18.html)
-   -   asp:Menu Images Disappearing (http://www.daniweb.com/forums/thread91162.html)

ptaylor965 Sep 29th, 2007 8:09 pm
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 Sep 30th, 2007 4:30 pm
Re: asp:Menu Images Disappearing
 
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


All times are GMT -4. The time now is 5:46 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC