Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 10th, 2004, 01:57 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cochin, Kerala, India.
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default HTM pages with dynamic content

I am currently doing a content managed site. Eventhough the content of pages comes from database, they want all the visitor side pages to be .htm. (They feel it will be more search engine friendly then).

I am doing it like this.

As an example, I am taking one page - contactus.htm. As and when the content changes, I am recreating the page contactus.htm. My problem is that, since the page is an htm page, the changes are not coming into effect immediately. The htm files are going into cache and page is shown from cache only. I cannot prevent an HTM page from going into cache.

Could anybody please help me ?
  #2 (permalink)  
Old June 10th, 2004, 02:20 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Use this within HEAD tags on that page to get that solved.

Code:
<head>
<meta HTTP-EQUIV="Expires" CONTENT="0">
</head>
Hope that helps.
Cheers!

_________________________
-Vijay G
Strive for Perfection
  #3 (permalink)  
Old June 10th, 2004, 03:03 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , Denmark.
Posts: 184
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Jonax
Default

Alternatively you can setup ISAPI to parse files with the .htm-extension with the ASP.dll.
Note that this will have a performance impact on flat HTML-files, in return you get the ability to have asp-code in html-files...

  #4 (permalink)  
Old June 10th, 2004, 03:57 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cochin, Kerala, India.
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

Hello Happygv and Jonax,

Thanks for the replies.

The first method seems to be easy. But the latter one gives me an area of ASP which I have never explored. Thanks for giving an opprtunity for exploration into a new area.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Master Pages, Content Pages and CSS carliviris Visual Studio 2005 0 January 8th, 2008 05:56 PM
Control IDs in content pages LMIILM BOOK: Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages ISBN: 978-0-470-12448-2 1 December 8th, 2007 06:30 AM
Batch convert .htm pages to .asp using template karib Dreamweaver (all versions) 22 July 30th, 2007 04:17 PM
Master Page/Content Pages coleenh ASP.NET 2.0 Basics 1 September 26th, 2006 02:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.