asp:Menu rendering problem

Discussion in 'ASP.NET / ASP.NET Core' started by gavin, May 4, 2010.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi

    I'm using .NET4/VS2010 and have an asp:Menu which renders correctly when I run my app from VS or if it's installed locally on my Vista/IIS7 machine.

    However, when copied to www.discountasp.net the menu appears to, on most occasions but not always, go through a fully expanded state for less than a second before rendering correctly. This occurs with both IE8 and FF3.

    You can go to www.componentspace.com and click the Home link in the menu at top left a few times to see what I mean.

    Does anyone have any suggestions as to the cause and solution?

    Thanks
     
  2. Thanks Mark. I'll try the suggestions in the link you provided but this problem is not IE8 specific. It occurs with Firefox and Chrome too.
     
  3. Apparently our VS 2008 web app had the same problem and specifying a z-index style for the DynamicMenuStyle fixed the it. However, this problem could be reproduced locally and with IE8 only so it matches with the description and solution described in http://weblogs.asp.net/bleroy/archiv...available.aspx.

    What's different with the current problem is that it's VS 2010/.NET 4 and that it doesn't occur on our local machine but does occur on discountasp.net. Also, the problem occurs with IE8 in standards or compatibility mode, as well with Firefox and Chrome.

    I used the default web app that's created in VS 2010 when you create an asp.net web project and added a few more menu items. This app is at: http://www.componentspace.com/demos/test/Default.aspx.

    Once again, it works fine when deployed to our local IIS 7 but fails when deployed to discountasp.net. You can use IE8, Firefox or chrome and get the same problem. Click the Home button in the menu and the entire menu is expanded and displayed briefly.

    Any suggestions?

    Could there be a patch missing from the discountasp.net IIS?
     
  4. Has anyone successfully used the asp:menu in VS 2010 at DASP?

    The test app at the following link is the default ASP.NET application created by VS 2010. All I did was add a couple of extra menu items.

    http://www.componentspace.com/demos/test

    On my system using IE8/Firefox/Chrome there’s an ugly expansion of the menu with New Item 1, New Item 2 etc displayed for half a second after clicking and then it returns to its normal state.

    Does anyone else see this?

    If I run the same app locally on an IIS7 server there are no issues.

    Any suggestions?
     
  5. It looks fine here on Chrome (4.1.249.1064)
     

    Attached Files:

  6. Perhaps there's some sort of latency issue. I'm located in Australia and it's definitely quite obvious from here. I had a couple of local friends try it but with different ISPs and they saw the same issue. I also had a friend in California try it using Safari and he saw the menu expansion but it was a lot less than half a second. The DASP guys saw nothing. So, perhaps it depends on the latency. This would also explain why we can't reproduce the problem here on our local IIS server.

    Any suggestions?

    Thanks.
     
  7. Yes you could be onto something there. I should have said earlier that I'm in the UK and a quick test now shows it also looks fine with FF3.6.3.

    The page markup shows the menu css is delivered from /Styles/Site.css and the JS is delivered in /Demos/Test/WebResource.axd?d=k9fJeYiEUjjst51mhvc2iUVKMB3spzvYUZn88GDTRYc1&t=634063614561641704.

    I'd be tempted to run a fiddler trace on the DASP hosted version to see if there's any latency downloading these resources (after the browser cache is cleared).
     
  8. Thanks for the suggestion. I'll see if fiddler provides any more information.

    I just want to double check that you're not seeing the latency given you're in the UK. The problem is not when you're hovering over the menu to expand it. Instead, it occurs when you click one of the menu items. For example, if I click the Home menu item then I get a screen redraw but for about half a second the entire menu is expanded, then the screen reverts to its proper state. You're not seeing that?

    What surprises me is that this is a bog standard ASP.NET 4 web app created using VS 2010. I added a couple of extra menu items but made no changes to the code, css, or menu properties. I'm just surprised that no one else has seen this issue. My google searching has been fruitless.
     
  9. I see no problems when clicking on any of the menu items here in Chrome or FF. Depending on the menu item clicked, default.aspx or about.aspx is (re)rendered and the menu looks ok on first load.
     
  10. Thanks. This is all very strange. I'll see what fiddler shows.
     
  11. ...Just a note, I could only get it to bug out on IE8, my FF and Chrome also rendered it.
    (Windows 7 64bit, IE8 64bit, FF3.63, Chrome4.1.2)

    btw, yes these controls are often odd. The Microsoft Connect site is full of issues for this, one of which I submitted. (Adding a blank node at the top often resolves some bugs.)
    All the best,
    Mark
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page