User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 456,519 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,815 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 1725 | Replies: 1 | Solved
Reply
Join Date: Oct 2006
Location: England
Posts: 156
Reputation: ptaylor965 is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 19
Sponsor
ptaylor965's Avatar
ptaylor965 ptaylor965 is offline Offline
Junior Poster

asp:Menu Images Disappearing

  #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:
<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>
Peter Taylor
Visual Basic.NET Application Developer

TaylorsNet
http://www.taylorsnet.co.uk
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2006
Location: England
Posts: 156
Reputation: ptaylor965 is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 19
Sponsor
ptaylor965's Avatar
ptaylor965 ptaylor965 is offline Offline
Junior Poster

Re: asp:Menu Images Disappearing

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 4:04 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC