Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 3 of 3

Thread: How to Remove Excess Code from Navigation

  1. #1
    bhansel is offline Junior Member
    Join Date
    Jul 2009
    Posts
    6

    Default How to Remove Excess Code from Navigation

    Hello...I'm working on cleaning up the code for our site and our page contains a huge amount of code resulting from the top navigation. Any suggestions on how to fix this?

    It has to do with this part:
    /*** ComponentArt Web.UI client-side storage for PageMenu ***/

    Check out our code at http://www.obedding.com


    Thanks!
    Beth

  2. #2
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    That's not really something you "fix", the code is there for a reason. If you strip all of that out, you lose the top menu navigation. You can do that if you like but then either you're going to have to replace it with something else (that you'll have to write yourself and likely won't be dynamic as you add new entities/products) or you leave customers with a site less easily navigable.

  3. #3
    mc9000 is offline Member
    Join Date
    Aug 2007
    Posts
    83

    Default

    Quote Originally Posted by bhansel View Post
    Hello...I'm working on cleaning up the code for our site and our page contains a huge amount of code resulting from the top navigation. Any suggestions on how to fix this?

    It has to do with this part:
    /*** ComponentArt Web.UI client-side storage for PageMenu ***/

    Check out our code at http://www.obedding.com


    Thanks!
    Beth
    Good luck. That's CA's fatal flaw - not putting this into an external file. Currently there are no products for asp.net on the market that don't put gobs of inline javascript into your page for menus, even the "CSS friendly" ones load the page inline script or, worse, use tables, and iframes.