Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Converting ASP to HTML
Old 05-07-2006, 03:54 PM Converting ASP to HTML
bobwyllie's Avatar
Junior Talker

Posts: 3
Trades: 0
Hi I am looking for some help.

Some of the web sites I do have dynamic database driven pages that really don't change very often. So I thought that if I could create an asp script that would read the asp page and then from that produce an html page from this it would reduce the load on the web servers.

Bob
bobwyllie is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-07-2006, 03:59 PM Re: Converting ASP to HTML
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
I don't really know of a script that will do what you want as such, but here's the pseudo-code of how I would do it:

1) Retrieve ASP page, all information.
2) Write all the HTML output to a variable.
3) Use FileSystemObject to create/replace the static HTML file with the variable.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 05-07-2006, 04:02 PM Re: Converting ASP to HTML
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,515
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
ok so you'll write a script that runs the dynamic page and output it as HTML and you expect it to lessen the load??????

unless the pages in question opens dozens of recordset or builds a 3000x3000 element array without releasing the objects the difference will be absolutely negligable.
Save your energy and time.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-07-2006, 05:34 PM Re: Converting ASP to HTML
bobwyllie's Avatar
Junior Talker

Posts: 3
Trades: 0
Quote:
Originally Posted by chrishirst
ok so you'll write a script that runs the dynamic page and output it as HTML and you expect it to lessen the load??????

unless the pages in question opens dozens of recordset or builds a 3000x3000 element array without releasing the objects the difference will be absolutely negligable.
Save your energy and time.
Thanks for the reply - possibly I didn't explain myself properly. This script would be run ONCE by the site administrator after the database is updated. Visitors to the site would only access the html pages - not the asp pages.

Bob
bobwyllie is offline
Reply With Quote
View Public Profile
 
Old 05-07-2006, 06:00 PM Re: Converting ASP to HTML
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,515
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
while it's a pretty simple script to write. Use a XMLHTTP object and spider the source code then as Adam says use the FSO to write the html file.
Not forgetting then to have a means to generate links to the files and keep this updated
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-08-2006, 05:16 AM Re: Converting ASP to HTML
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
Basically manual cacheing then?
ASP.NET has some very advanced caching options that you could utilize for this purpose...
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 05-08-2006, 05:10 PM Re: Converting ASP to HTML
bobwyllie's Avatar
Junior Talker

Posts: 3
Trades: 0
Thanks guys, I will give it a try.
bobwyllie is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Converting ASP to HTML
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.68818 seconds with 12 queries