asp:Menu Images Disappearing

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Oct 2006
Posts: 169
Reputation: ptaylor965 is an unknown quantity at this point 
Solved Threads: 19
Sponsor
ptaylor965's Avatar
ptaylor965 ptaylor965 is offline Offline
Junior Poster

asp:Menu Images Disappearing

 
0
  #1
Sep 29th, 2007
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:
  1. <asp:Menu ID="mnuTopMain"
  2. runat="server" CssClass="NavigationMenus" Orientation="Horizontal"
  3. SkipLinkText="" StaticEnableDefaultPopOutImage="False">
  4. <DynamicMenuStyle CssClass="NavigationMenusDD" />
  5. <DynamicSelectedStyle CssClass="NavigationMenus" />
  6. <DynamicMenuItemStyle CssClass="NavigationMenusDD" VerticalPadding="1px" />
  7. <StaticItemTemplate>
  8. <asp:ImageButton ID="imgVTopMenu"
  9. runat="server" ImageUrl=<%# Eval("ImageURL") %>
  10. ImageAlign="Middle" AlternateText=<%# Eval("Text") %>
  11. PostBackUrl=<%# Eval("navigateURL") %> Width="64px" Height="39px" />
  12. </StaticItemTemplate>
  13. <DynamicItemTemplate>
  14. <span id="lblVCode"><%#Eval("Text")%></span>
  15. </DynamicItemTemplate>
  16. </asp:Menu>
Peter Taylor
Visual Basic.NET Application Developer

TaylorsNet
http://www.taylorsnet.co.uk
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 169
Reputation: ptaylor965 is an unknown quantity at this point 
Solved Threads: 19
Sponsor
ptaylor965's Avatar
ptaylor965 ptaylor965 is offline Offline
Junior Poster

Re: asp:Menu Images Disappearing

 
0
  #2
Sep 30th, 2007
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
Peter Taylor
Visual Basic.NET Application Developer

TaylorsNet
http://www.taylorsnet.co.uk
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC