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 May 4th, 2004, 11:29 PM
Authorized User
 
Join Date: Jan 2004
Location: Oklahoma City, , .
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default Scheduled Server-Side-Include

I don't know if you would use ASP to do something like this, but i have a group of html files and would like to display each of them (as an include on the home page) within different time periods...

Example:

inc_1: Jan 1-10
inc_2: Jan 11-20
etc....through the whole year.

Can anyone help or give some ideas???? Thanks!

  #2 (permalink)  
Old May 5th, 2004, 01:59 AM
Friend of Wrox
Points: 2,376, Level: 20
Points: 2,376, Level: 20 Points: 2,376, Level: 20 Points: 2,376, Level: 20
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , Australia.
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Yes you could use ASP for this. Even then a couple of ways are possible.

Conditional includes are discussed in the topic:
http://p2p.wrox.com/topic.asp?TOPIC_ID=11585

Alternatively:
You could use a select statement to determine the file you wish to include, use the file system object and use some string manipulation to write the BODY of the page to the browser.

XML: There is probably a more elegant way to do this with XML if your prepared to have a look around. It think the object to use is Microsoft.XMLHTTP.


======================================
They say, best men are moulded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Converting Client-side to Server-side Code kwilliams ASP.NET 2.0 Professional 1 November 21st, 2007 05:25 PM
Firing server side events at client side codes mehdi62b ASP.NET 1.0 and 1.1 Basics 6 May 18th, 2005 09:11 AM
sharing a server-side variable with client-side pigtail Javascript How-To 6 November 4th, 2004 02:01 AM
Two Client Side vs Server Side issues Milo Classic ASP Professional 5 May 25th, 2004 02:47 PM
Accessing Server Side Data on Client Side steve456 Classic ASP Professional 3 October 15th, 2003 02:33 PM





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