Home | Advertising Info12 USERS CURRENTLY ONLINE   
   Site Search Contact Us Thursday, November 27, 2014  
 
 


 
ASPProtect
User Management Application with web based screens that allow you to manage users.
www.ASPProtect.com
 
ASPBanner
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
www.ASPBanner.com
 
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
www.ASPPhotoGallery.com
 
ASPClassifieds
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.
www.ASPClassifieds.com



DISCUSSION ARCHIVES
 
Try a free httpZip trial now and compress for less!


We didn't realize
the site was so popular.

Other Stuff
 

 
 
Active Server Pages ASP ASP.NET .aspx .ascx Web HTML Developer Internet Microsoft Web Services Visual Studio .NET CJWSoft ASPProtect ASPBanner ASPClassifieds



(Advanced)  (Components)  (Database)  (General)  (Vbscript)




ASPProtect

 
Subject: Re: Problems with Dyamic Includes
From: Mike
Date: 10/1/2003 10:03:15 PM
IP: 195.92.168.164



 

Dan

This is so easy it's easy to overlook. This is how I did it.

1. Set session variables in whatever page you need
2. In page that uses the session variable use

<!--#include file="include.txt" -->

It works fine but just in case -

File 1 - CallInclude.asp

<html>
<head>
</head>
<body>
<%
Session("User") = "Mike"
%>
<A href="Include.asp">Test</A>
</body>
</html>

Which calls File 2 - Include.asp

<html>
<head>
</head>
<body>
<!--#include file="include.txt" -->
</body>
</html>

Which uses File 3 - Include.txt

<%
Response.Write("Hello " & Session("User"))
%>

Hope that helps

Mike :-)


Previous Message


 

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright 1998 - 2014 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages asp search engine active server page asp application components tutorial CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com