Home | Advertising Info69 USERS CURRENTLY ONLINE   
   Site Search Contact Us Saturday, December 20, 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 what is asp programming how to sample asp example code scripts software asp forum mail sessions applications global.asa CJWSoft ASPProtect ASPBanner ASPClassifieds



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




ASPProtect

 
Subject: Re: Urgent help! What am I doing wrong?
From: ungos
Date: 11/21/1999 7:13:16 PM
IP: 4.16.62.190



 

Using <%=vpath%> should work, but with your current code, it will only print the content of "url".

If you want to actually display the HTML contents, create a header.htm and a footer.htm, then try the following:

<%
vpath = request.querystring("url")

a url containg the following text
will be sent through the formatter
searchtext = "content/archive"

This would be the HTML for
the top and bottom sections
of your template
headerfile = "header.htm"
footerfile = "footer.htm"

if the requested document is in a
directory that needs to be formatted...
if instr(vpath, searchtext) <> 0 then

print out the document
format (headerfile)
format (vpath)
format (footerfile)


the requested document is not in a
directory that needs to be formatted
so just send it to the proper place
else
response.redirect(vpath)
end if
%>

<%
SUB format(vpath)

somefile=server.mappath(vpath)
Set fs = CreateObject("Scripting.FileSystemObject")
Set thisfile = fs.OpenTextFile(somefile, 1, False)
tmpstr=thisfile.readall
response.write tmpSTR
thisfile.close
set thisfile=nothing
set fs=nothing

END SUB
%>

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.

PowerASP active server pages asp.net microsoft .net framework sdk learn asp what is asp tutorial learn asp.net 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