Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

include files

Status
Not open for further replies.

Jeremy21b

Technical User
Jul 7, 2002
127
CA
Hello.

I want to use include files on our website, but I am held back by the fact that they loaded before the script is executed. I have product reviews that I want displayed in the middle of a dynamic page. Currently the reviews are obtained from the SQL database. This is putting a lot of stress on our server. I think a better strategy would be to dynamically create html pages for the reviews. The problem is that the product pages are all dynamic and use the same asp page. Ideally I'd want to do #include file="<%= thefilename %>", but I know that wouldn't work. So how do I get around this? I'm thinking I might be stuck loading the html page in a new window apart from the dynamic page.

Any help would be much appreciated. Thanks.
 
Includes are always included, then executed with the whole page. I would suggest using iframes. you can set the border to zero using css and it will appear as part of the page.
 
I'd rather not use frames as search engine optimization is very important part of our website.

I think I just thought of a solution...some reverse engineering, I think. Instead of using an include on the product page, I would dynamically create asp pages for the reviews (with the reviews as static content). The asp pages would have includes for the dynamic content on the product pages. It's not the ideal solution though, so if anyone has any other suggestions, I'd like to hear them.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top