"pagates" <pa*****@discussions.microsoft.comwrote in message
news:90**********************************@microsof t.com...
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>, <bodyetc.
You could, I suppose, strip off the page markup from your HTML files and
then surround the remaining content with <asp:Contenttags, 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...?