Re: Upgrading HTML to ASP.NET 2.0



"pagates" <pagates@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:90BF053A-B4CE-4739-928D-A93BB8ADD453@xxxxxxxxxxxxxxxx

The question is: can we use our existing HTML files as content in a Master
page?

Not natively. The Master / Content relationship requires .aspx and .master
files because they need to be processed by ASP.NET and rendered into HTML to
be streamed down to the client.

Even if you were to rename your .html files to .aspx, you would still get
lots of errors because content pages can't contain page markup like <html>,
<head>, <body> etc.

You could, I suppose, strip off the page markup from your HTML files and
then surround the remaining content with <asp:Content> tags, or even write
some sort of routine which did this at runtime on the fly...

However, unless you have thousands of HTML pages, it's probably quicker in
the long run to bite the bullet and convert them to content pages.

Once you've done a couple, you'll realise that it's quite a simple process.

How many HTML pages are we talking about, AAMOI...?


.



Relevant Pages

  • Re: Inconsistent results - why?
    ... Your HTML is 'tag soup', that is, the browser has not been given a DOCTYPE so it must guess how to interpret the markup. ... It also encounters a variety of invalid attributes and markup, so it will use 'quirksmode', which is used whenever the browser is utterly confused as to what the markup is supposed to do and does its best to display something. ... Because your markup is so full of errors that whatever various browsers may make of it is likely different. ... Learn more about HTML and CSS, ask such questions in a relevant new group. ...
    (comp.lang.javascript)
  • Re: Add-in to paste html in FP needed!
    ... | To save yourself some clicking, add the "Insert HTML Markup" button to your ... I usually use notepad anyway. ... | Jack Brewster - Microsoft FrontPage MVP ...
    (microsoft.public.frontpage.addins)
  • [ANN] PySourceColor 1.9.6 much new code please review
    ... # - HTML markup does not create w3c valid html, ... # Optional: specify one type only ... # import PySourceColor as psc ...
    (comp.lang.python)
  • Re: How important is validation?
    ... you should design to the HTML ... browsers is a goal in itself. ... For old browsers, I only check my documents so that the content will remain accessible, viewable and links are functional in user agents without CSS support and without javascript support. ... It is known that 98% of all webpages out there on the web fail markup validation testing. ...
    (comp.infosystems.www.authoring.html)
  • Re: Deleting effect like icon-recycle bin
    ... > For HTML source code the appropriate parser is called 'soap parser'. ... The appropriate parser für HTML is an SGML parser as that is an SGML ... > It means that is it will skip all not known elements of markup'. ... > and furthermore it is valid under XHTML. ...
    (comp.lang.javascript)