This method is actually quite useful for Content Management websites.
It makes it easier to track your traffic when you have separate actual static files out there. It also is more friendly to search engines.
Personally, I have a .template file that I use as (guess what!) a template, which just defines the page in terms of user controls.
Code:
<%@ Page %>
<head>
...
</head>
<body>
<form>
<uc:header pageID= />
<uc:menu pageID= />
<uc:content pageID= />
<uc:footer pageID= />
</form>
</body>
Just as a for instance (yours will surely be much more complicated than that), then read it in using a streamreader, replace "pageID=" w/ "pageID=thePageID" (along with any other stuff, keywords, titles, etc... that you need), and then as ca8msm said, use a streamwriter to write it back out to the disk.
Most of the content (in my case) is still stored solely in the database, and pulled on demand, but you could use the same method to write out the whole page statically if you wished (It would be overkill for my purposes, but you may have your reasons).
good luck.
-paul
The answer to getting answered -- faq855-2992