Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-03-2006, 11:51 AM
WebProWorld Member
 

Join Date: Feb 2004
Posts: 58
yorks RepRank 0
Default HTML generation

Hi all

does anyone know of any code which will do the following.

Say we have a product display page which displays database from a database about a product. ie.

show_product.asp?prodid=773

I want to go through all products in the database and generate a static HTML page for each rather than using ASP to generate the page on the fly

Thanks
Reply With Quote
  #2 (permalink)  
Old 01-03-2006, 12:15 PM
WebProWorld Pro
 

Join Date: Sep 2005
Location: Manchester, UK
Posts: 257
mikesmith76 RepRank 0
Default

why???
Reply With Quote
  #3 (permalink)  
Old 01-03-2006, 12:20 PM
WebProWorld Member
 

Join Date: Feb 2004
Posts: 58
yorks RepRank 0
Default

Hi

Because in the application we have, these pages (not product pages, I used that as an example) are not updated that often but do need to be updatable at anytime by users.

If we can store them as a HTML page when they change, it will save thousands of database accesses
Reply With Quote
  #4 (permalink)  
Old 01-03-2006, 12:38 PM
Faglork's Avatar
WebProWorld Veteran
 

Join Date: Feb 2005
Location: Forchheim, Germany
Posts: 947
Faglork RepRank 0
Default

Don't know which CMS / eCommerce prog you use, but many of them have a configurable cache - this might suffice.

Apart from that, I am not quite sure what you are asking for - there is no information about the CMS you use. How do you update? Via online form? Then you could modify the program to write an HTML file after clicking the OK button. Or do you upload an updated database? If so, do you update on a regular time schedule or as needed? There are multiple solutions, but without any real info it is hard to suggest anything.

faglork
Reply With Quote
  #5 (permalink)  
Old 01-03-2006, 12:43 PM
WebProWorld Member
 

Join Date: Feb 2004
Posts: 58
yorks RepRank 0
Default

hi faglork

i'll try and explain..

the user updates their profile information via a form. This is then written to the database (MSSQL).

Other users can look at this profile information which obviously requires a database query to retrieve the data and therefore display it.

What I require is to be able to write an .htm page of the users profile whenever its updated then no database accesses would be required to view that profile.

thanks
Reply With Quote
  #6 (permalink)  
Old 01-03-2006, 01:00 PM
WebProWorld Pro
 

Join Date: Sep 2005
Location: Manchester, UK
Posts: 257
mikesmith76 RepRank 0
Default

Just reread your original post, you should start by looking up file access in ASP. It's been a while since I have used it but there should be plenty of resources available. The easiest way would be to create a html template file. When somebody updates their profile you can read in this template, replace some markers and then save the changed version.

The major problem I can think of with this solution is managing the links to the static pages, best bet may be to use the userid of the person as the profile page name.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: ,



Thread Tools
Display Modes

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

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


Search Engine Optimization by vBSEO 3.2.0