Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Dynamic Incude
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Dynamic Incude

 Post Reply Post Reply Page  <123>
Author
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2004 at 9:17am

if you want to just include CONTENT then server.execute works fine..

if you want to include VARIABLES, CONSTANTS, SERVER OBJECTS, etc then server.execute wont work

Server.Execute and .Transfer works in a way like IFrames, just that its not iframes, if you understand

 

but one way you could do this is to use FSO and write some new lines when you add a new skin..

Back to Top
neotrix View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
Post Options Post Options   Thanks (0) Thanks(0)   Quote neotrix Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2004 at 9:27am
What do you mean FSO
Back to Top
neotrix View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
Post Options Post Options   Thanks (0) Thanks(0)   Quote neotrix Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2004 at 9:50am

This Is what i get when i try to run Server.Execute...

Microsoft VBScript runtime error '800a01b6'

Object doesn't support this property or method: 'Execute'

/apnakohat/default.asp, line 188

Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2004 at 9:52am

FSO = FileSystemObject

Server.CreateObject("Scripting.FileSystemObject")

Back to Top
neotrix View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
Post Options Post Options   Thanks (0) Thanks(0)   Quote neotrix Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2004 at 9:55am
Originally posted by Semikolon Semikolon wrote:

Server.Execute and .Transfer works in a way like IFrames, just that its not iframes, if you understand

That's What i'm looking for, i Dont want to transfer any variable or something, just want to include the contents of that page

Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2004 at 10:06am

have you tried Server.Transfer? im not sure if that was added in PWS and IIS v4 or IIS v5..

 

whats your system specs?

i suggest you update your os to at least windows 2000..

Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2004 at 8:09pm
Server execute runds the code on the invoked page then returns to the next line of code in the calling page. Server Transfer is like a redirect in that it sends you to the new page, and doesn't return to the calling page.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
neotrix View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
Post Options Post Options   Thanks (0) Thanks(0)   Quote neotrix Quote  Post ReplyReply Direct Link To This Post Posted: 12 February 2004 at 7:45am

Guys I Guess I Did It

<%
Dim FSO, inFile
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
Set inFile = FSO.OpenTextFile( Server.MapPath("message.asp") )
Response.Write inFile.ReadAll
inFile.Close
Set inFile = nothing
%>

if we replace the message.asp with a variable, it will show the name of the page that we have in that variable Cool Isent It

-Neotrix

Back to Top
 Post Reply Post Reply Page  <123>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.