How to generate html files from dynamic files ASP

Hi Experts,

How are you. I have a portal which is fully dynamic in nature. ASP and sql server. To show data of any property I am like using

So based on this id my site shows the data. Now I want that there should be a method or technology in ASP which allows me to publish these pages offline means on a CD.

What i want is that there should be a mechanisim which generates pages (HTML pages) like 15.htm, 14.htm from these pages so that i can give these pages to my client on Cd to view offline.

I know there must be some method. I donot want that I visit each page individually and then use the save as method. I want that this automatically generates the same.


Loveneesh Bansal
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I do not know if you can get this via a batch file command.  But, it may require a simple C code to invoke WinInet functions and get the page as rendered by the asp engine.  If you would like the code, please let me know.  The trouble there, however, is that you must retrieve the images, script files, and style files save them somewhere and then adjust the paths in the rendered page.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
I think you need to generate all the pages dynamically .
For example you can generate all the pages you want from a database and then you can wite to the CD and give them.
You should look into some web spidering programs, specifically ones like wget for linux which are specifically meant to mirror sites.

I think wget has an option -k that allows you to convert dynamic links into local ones so you can host them locally.

I think this article will answer your question:
HOW TO: Archive the Results of a Dynamic Page to an HTML Page in ASP.NET by Using Visual C# .NET:;en-us;810205

Hello, You could try some products like Offline Explorer from metaProducts ( This one saves all content of web that is aviable to client. (walks throught all links and saves pages on hdd+updates these links to saved ones)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.