Not really :-) What if the directory is very large? Output Cache is RAM bound.
A generator would still rock. Though I agree in full - I would also try using the Output Cache first. Otherwise a program to regenerate the static HTML is needed. Regards Thomas Tomiczek THONA Consulting Ltd. (Microsoft MVP C#/.NET) -----Original Message----- From: Duncan Smart [mailto:[EMAIL PROTECTED]] Sent: Montag, 22. April 2002 11:37 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Suggestions: How to generate static html pages via .NET John, This is exactly what the truly wonderful Page Output Caching was invented for! See: ms-help://MS.VSCC/MS.MSDNVS/cpgenref/html/cpconoutputcache.htm in the online docs. You put this at the top of an ASPX page: <%@ OutputCache Duration="#ofseconds" VaryByParam="*" %> and the page will have a "snapshot" generated the 1st time somebody hits it, and then subsequent requests are served by the snapshot (i.e. no subsequent db hit). If you want to modify the page then the snapshot will be automatically regenerated on the next hit -- neat eh? Cheers, Duncan Smart [EMAIL PROTECTED] On Mon, 22 Apr 2002 01:37:43 -0700, John Mandia <[EMAIL PROTECTED]> wrote: >Hi All, > >I've built a simple online directory that creates a category page and >then a company profile page by pulling the information out of SQL. > >My Question is this: If I wanted to generate html pages for the live >site (The pages once created do not change often), how could i achieve >this? At the moment I browse the page manually with i.e and then do >file save but this will be an issue when the site grows. I wish to >keep the site maintainable which is why I want to keep company profiles >etc within a database. > >Any suggestions appreciated. > >Thanks, > >John > >You can read messages from the DOTNET archive, unsubscribe from DOTNET, >or subscribe to other DevelopMentor lists at >http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.