944,123 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Marked Solved
  • Views: 3487
  • ASP.NET RSS
Sep 29th, 2007
0

asp:Menu Images Disappearing

Expand Post »
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.NET Syntax (Toggle Plain Text)
  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>
Similar Threads
Reputation Points: 16
Solved Threads: 19
Junior Poster
ptaylor965 is offline Offline
169 posts
since Oct 2006
Sep 30th, 2007
0

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

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Need help displaying single database values
Next Thread in ASP.NET Forum Timeline: ASP.NET project help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC