Unanswered Why Is My Code Duplicating?

  • Thursday, December 13, 2012 7:53 PM
     
     

    Hello everyone,

    I have been having the darndest time trying to find a solution to this weird problem, and I'm not sure what else I can do.

    Basically, whenever I use my Expression to update a page for my website, then publish that page to my website, something happens that causes the code for the banner and site navigation bars to duplicate themselves, meaning that the actual displayed page shows two banners and two navigation bars. It looks awful, but these changes do NOT show up in Expression, are NOT in the original pages, and I can NOT find any way to alter or fix them since, according to Expression, these duplications don't actually exist.

    I've never used this software before and I'm still learning all of its ins and outs, but can anybody offer an explanation as to why and how this is happening and, more importantly, how I can fix it? This has so far happened to every page I've published, whether it's a brand new page or an existing one I've edited.

All Replies

  • Thursday, December 13, 2012 7:59 PM
     
     
    A link to a faulty page is essential for solving rendering problems.
     
    If you are upgrading from FrontPage and use shared borders, then be aware that Expression Web 4 will trash pages with shared borders - the results being similar to those you describe.
    If that is the problem, then remove the shared borders- they can be replaced with a Dynamic Web Template.
     

    Ron Symonds
    Microsoft MVP (Expression Web)

    www.rxs-enterprises.org/fp
  • Thursday, December 13, 2012 8:00 PM
     
     
    A link to a faulty page is essential for solving rendering problems.
     
    If you are upgrading from FrontPage and use shared borders, then be aware that Expression Web 4 will trash pages with shared borders - the results being similar to those you describe.
    If that is the problem, then remove the shared borders- they can be replaced with a Dynamic Web Template.
     

    Ron Symonds
    Microsoft MVP (Expression Web)

    www.rxs-enterprises.org/fp
  • Thursday, December 13, 2012 8:09 PM
     
     
    I agree with Ron- this sounds like what happened to some of our old FP sites when we used EW4, we got duplication of the shared border elements. I cant recall what the resulting code looked like.
  • Thursday, December 13, 2012 8:15 PM
     
     

    Oh wow, thanks for the quick response. For some reason I can't post a link to the page here, but the url is www aoshs org / contactinfo (Hard to write that out without it making an automatic hyperlink).

     All pages on the website do feature the same header and site navigation bar--does that count as a shared border? That may be what I need to do, but...what exactly is a Dynamic Web Template?

  • Thursday, December 13, 2012 9:13 PM
     
     

    DWT's are covered in the Help file, and there are examples you can check out by going to "Site|New Site|Templates" and checking out the variations shown in the second column. Basically, they allow you to define non-editable regions which are replicated throughout the site (like shared borders), and editable regions (content areas) which are different from page to page. To make a change to the common areas of each page (header, nav, footer, etc.) you edit the template, and changes replicate to attached pages (like shared borders) when the template is saved. You edit the content of individual pages on those pages, in the editable regions. See the Help file for more... ;-)

    Oh, yeah. After you figure out how they work, and practice with them to get used to how they work, just put your current shared borders content into a non-editable region or regions, attach your other pages to the template, and when you edit them going forward, those changes will replicate, just as changes to shared borders appeared on all pages that used them. BTW, DWTs were actually available in FP.  ;-)

    cheers,
    scott


    Please remember to "Mark as Answer" the responses that resolved your issue. It is common courtesy to recognize those who have helped you, and it also makes it easier for visitors to find the resolution later.

  • Thursday, December 13, 2012 9:15 PM
     
      Has Code

    Umm, what we wanted you to do was to make a link, exactly what you said you were having trouble preventing. http://www.aoshs.org/ which shows the problem and it is because you are using shared borders.

    <meta name="Microsoft Border" content="tlb, default">

    Says you are using top, left and bottom shared borders.

    You've got a lot of clean up you need to do on that site.

    I suggest you spend some time with the learning resources in the FAQ and pay particular attention to the tutorials on migrating from FrontPage to Expression Web.


    Free Expression Web Tutorials
    For an Expression Web forum with without the posting issues try expressionwebforum.com

  • Thursday, December 13, 2012 9:30 PM
     
     
    You have been hit by the Expression Web 4 shared borders bug. This bug introduces a tag <msnavigation>  which replaces the  <!--msnavigation--><table> tags normally produced for shared borders, and a
    second (sometimes third) set of borders is produced.
     
    As Scott said, DWT (Dynamic Web Template) is described in the program Help. There are additionally several tutorials linked to in the forum FAQ - Start Here post at
     

    Ron Symonds
    Microsoft MVP (Expression Web)

    www.rxs-enterprises.org/fp