locked
Should I make all pages .aspx? RRS feed

  • Question

  • If some, but not all, of my site's pages use asp.net controls is it sensible to make all pages aspx pages rather than have a mix of aspx and html pages? And as a secondary question, if I do make them all aspx pages, is there any advantage for using master pages over dwt pages.


    Roger Spencelayh, Computing Services, Malmesbury, UK
    Friday, October 23, 2009 9:30 AM

Answers

  • Unless you intend to use templating, it makes no difference whether you mix aspx and html. However, if you do intend to work from a template, and you intend to use some aspx pages, then I would advise using an aspx master page. HTML DWTs do not mix well with aspx, so if I were in your position, and intended to work from a template, I would establish an aspx master page and build the site from there.

    cheers,
    scott

    Plural's don't have apostrophe's. It seem's sometime's that any word's ending in "s" get a gratuitous apostrophe. Apostrophe's are used to indicate possessive's and elision's (contraction's or abbreviation's).
    Friday, October 23, 2009 12:25 PM
  • If you think you might want to add features to other pages at some point, it could be good just to name them all .aspx. This avoids issues later with search engines if you change the page names or users who bookmark a page. Personally, I prefer MasterPages over DWTs because less errors can happen with the MasterPage html. I've occassionally had pages that don't update thanks to an odd bit of HTML somewhat detaching them from their main dwt.
    Friday, October 23, 2009 1:09 PM

All replies

  • Unless you intend to use templating, it makes no difference whether you mix aspx and html. However, if you do intend to work from a template, and you intend to use some aspx pages, then I would advise using an aspx master page. HTML DWTs do not mix well with aspx, so if I were in your position, and intended to work from a template, I would establish an aspx master page and build the site from there.

    cheers,
    scott

    Plural's don't have apostrophe's. It seem's sometime's that any word's ending in "s" get a gratuitous apostrophe. Apostrophe's are used to indicate possessive's and elision's (contraction's or abbreviation's).
    Friday, October 23, 2009 12:25 PM
  • If you think you might want to add features to other pages at some point, it could be good just to name them all .aspx. This avoids issues later with search engines if you change the page names or users who bookmark a page. Personally, I prefer MasterPages over DWTs because less errors can happen with the MasterPage html. I've occassionally had pages that don't update thanks to an odd bit of HTML somewhat detaching them from their main dwt.
    Friday, October 23, 2009 1:09 PM
  • Thanks Scott, particularly for the bit about DWTs not mixing with aspx pages. Better to know now rather than 6 months down the road when it all falls apart.

    PS, like the sig, but are you sure there isn't an apostrophe in gratuitou's :)

    Roger Spencelayh, Computing Services, Malmesbury, UK
    Friday, October 23, 2009 5:18 PM
  • Thanks Mark. It all seemed sensible, but I just feel better getting the nod from those with more experience than me.


    Roger Spencelayh, Computing Services, Malmesbury, UK
    Friday, October 23, 2009 5:21 PM
  • I'm not sure how it is with DWT's, but with a Master Page site, if you want to use the cool Google Analytics functionality to understand how your site is being visited, the Google code only has to be put on the Master page.  Nice.
    ClarkNK, A.K.A. HomePage Doctor
    HomePageDoctor.com -- Expression Web database tutorials
    Ownertrades.com -- Created with FP, Access, Bots and Wizards
    MyNumbersTracker.com -- Created with Expression, VWDExress, SQL Express, and ASP.NET.
    Friday, October 23, 2009 8:16 PM
  • Put any code in an uneditable section of the DWT and it will be on all pages. Both DWTs and Master Pages update all pages attached when you change something in a locked area. The primary difference is that with a DWT you have to republish all the pages attached to the DWT after an update for the changes to show on the web. With a Master Page all you have to do is upload the master page on the server.
    MS MVP Expression Tutorials & Help http://by-expression.com and online instructor led Expression Classes
    Friday, October 23, 2009 9:25 PM