RE: ASP Includes on pages

by "David R. Longnecker" <davidl(at)activematrixsolutions.com>

 Date:  Thu, 21 Jun 2001 15:41:47 -0500
 To:  "'David Clapper'" <dclapper(at)clioassociates.com>
 Cc:  "Hwg-Techniques" <hwg-techniques(at)hwg.org>
 In-Reply-To:  webbox
  todo: View Thread, Original
I have to agree with Rebecca... from the advice she gave me, it's
working like a dream for the pages; however, I'm using the Select Case
method.  

*shrugs* what works, works.  =)

-David

-----Original Message-----
From: owner-hwg-techniques(at)hwg.org [mailto:owner-hwg-techniques(at)hwg.org]
On Behalf Of David Clapper
Sent: Thursday, June 21, 2001 2:24 PM
To: dmb(at)mokee.com.hwg-techniques(at)hwg.org
Cc: Rebecca.Campbell(at)trustvesta.com
Subject: RE: ASP Includes on pages


Rebecca et al,

Hmmm ... I can't argue with success, but I tried doing something
like this once and ran into precisely the problem that was mentioned
- that INCLUDE is processed before the .ASP code in the page
is executed. According to the MSKB article referenced below,
MS has introduced the Server.Execute method in IIS 5.0 specifically
to deal with this problem.

http://support.microsoft.com/support/kb/articles/Q224/3/63.ASP?LN=EN-US&
SD=gn&FR=0&qry=ssi&rnk=2&src=DHCS_MSPSS_gn_SRCH&SPR=ASP

David Clapper 
Vice-President & Chief Architect 
Clio Associates 
70 Pavilion St. 
Rochester, NY 14620 USA 
Voice: +1.716.442.5407 
Fax: +1.716.442.5993 
Cell: +1.716.259.3699 
e-mail: dclapper(at)clioassociates.com 
PGP public key ID: 0xC67E9E98 

>--- Original Message ---
>From: Rebecca Campbell <Rebecca.Campbell(at)trustvesta.com>
>To: "'D Benfer'" <dmb(at)mokee.com>, hwg-techniques(at)hwg.org
>Date: 6/21/01 2:42:24 PM
>

>i'm no ASP guru, but it works on my server...  
>
>you could use FSO to accomplish the same thing, but it seems
much easier to
>use if statements, as long as that works when tested.
>
>-rebecca
>http://www.nerdygirl.com
>
>-----Original Message-----
>From: D Benfer [mailto:dmb(at)mokee.com]
>Sent: Thursday, June 21, 2001 10:12 AM
>To: hwg-techniques(at)hwg.org
>Subject: RE: ASP Includes on pages
>
>
>I was under the impression that you couldn't actually do this,
though.
>Because the parser will process the include first, then the
ASP code. So all
>includes on the page would be loaded before any ASP code was
run? Haven't
>tried it yet, but something in the back of my mind tells me
that is so. Most
>likely you would have to go with a FileSystem Object and stream
the code in
>through that... HTH...
>
>Darren Benfer (dmb(at)mokee.com)
>Mokee Computer Technologies LLC
>www.mokee.com | 877-801-1343
>
>-----Original Message-----
>in that case, your urls for your page would probably end up
looking
>something like this:
>
>http://www.yourdomain.com/main.asp?about
>
>in the main.asp file, you'd have something like this:
>
><% if request.querystring = "about" then %>
>  <!-- #include file="about.html" -->
><% end if %>
>
>You could also make it into a Select Case statement:
>
><%
  dim q = request.querystring
	select case q
	  case "about"  %>
>	    <!-- #include file="about.html" -->
>	  <% case "contact" %>
>	    <!-- #include file="contact.html" -->
>	  <% case else %>
>	    <!-- #include file="main.html" -->
>	<% end select
%>
>
>hth,
>rebecca
>http://www.nerdygirl.com
>
>-----Original Message-----
>From: David R. Longnecker [mailto:davidl(at)activematrixsolutions.com]
>Sent: Tuesday, June 19, 2001 7:01 AM
>To: 'Klaas De Waele'; 'Hwg-Techniques'
>Subject: RE: ASP Includes on pages
>
>
>Kayjey-
>
>I think you're onto what I'm trying to do, LOL.. but I'm not
sure I
>understand how to do it.
>
>One person replied to change the table name from body since
that's a
>defined name.. so change it to 'content'.  I have about.asp
sitting over
>here with a table called 'about'.  I'd like to dynamically pull
that
>table across when people choose the "About" button.
>
>Do you know of any web resources that I can check out?  I know
it can be
>done, but I've got to find a definition in English. *grin*
>
>-David
>
>-----Original Message-----
>From: owner-hwg-techniques(at)hwg.org
[mailto:owner-hwg-techniques(at)hwg.org]
>On Behalf Of Klaas De Waele
>Sent: Tuesday, June 19, 2001 4:16 AM
>To: 'davidl(at)activematrixsolutions.com'; 'Hwg-Techniques'
>Subject: RE: ASP Includes on pages
>
>What you need...
>
>URL: main.asp?REDIR=about.asp
>
>in main.asp
>
>response.redirect "Request.querystring("REDIR")"
>
>in about.asp
>
>include header
>page content
>include footer
>
>OR work with a database:
>
>in main.asp
>
>connect to database and get the content for about.asp, display
it in the
>table
>
>OR work with external file:
>
>in main.asp include the source of a text or asp file, through
Filesystem
>object
>
>My personal preference is either the first if you don't want
a database;
>the
>second one if you also want easy control over the actual content
through
>a
>GUI for example.  Though that's a whole other thing.
>
>
>- Kayjey -
>
>
>
>
>-----Oorspronkelijk bericht-----
>Van: owner-hwg-techniques(at)hwg.org
>[mailto:owner-hwg-techniques(at)hwg.org]Namens David R. Longnecker
>Verzonden: dinsdag 19 juni 2001 8:11
>Aan: Hwg-Techniques
>Onderwerp: ASP Includes on pages
>
>
>Hey everyone, how do you generate page content through a command
in a
>link using ASP and SSI?
>
>Okay, I've built the basic layout of the page and called it
main.asp and
>created a table called 'body' that I want everything to go in.
 Now, I
>want to be able to call from the nav-bar like main.asp?about.asp
or
>something to that effect to fill to the table called 'body'.
>
>Is anyone familiar with what I'm TRYING to figure out?  Any
suggestions
>or references would be greatly appreciated!
>
>-David
>
>David R. Longnecker
>ActiveMatrix Solutions
>http://activematrixsolutions.com <http://activematrixsolutions.com/>
>
>
>

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA