| Author |
Topic Search Topic Options
|
Semikolon
Senior Member
Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
|
Post Options
Thanks(0)
Quote Reply
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..
|
 |
neotrix
Mod Builder Group
Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
|
Post Options
Thanks(0)
Quote Reply
Posted: 11 February 2004 at 9:27am |
What do you mean FSO
|
|
|
 |
neotrix
Mod Builder Group
Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
|
Post Options
Thanks(0)
Quote Reply
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

|
|
|
 |
Semikolon
Senior Member
Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
|
Post Options
Thanks(0)
Quote Reply
Posted: 11 February 2004 at 9:52am |
FSO = FileSystemObject
Server.CreateObject("Scripting.FileSystemObject")
|
 |
neotrix
Mod Builder Group
Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
|
Post Options
Thanks(0)
Quote Reply
Posted: 11 February 2004 at 9:55am |
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
|
|
|
 |
Semikolon
Senior Member
Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
|
Post Options
Thanks(0)
Quote Reply
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..
|
 |
dpyers
Senior Member
Joined: 12 May 2003
Status: Offline
Points: 3937
|
Post Options
Thanks(0)
Quote Reply
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.
|
 |
neotrix
Mod Builder Group
Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
|
Post Options
Thanks(0)
Quote Reply
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 
|
|
|
 |