Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Off the topic: Random Include
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Sehgal
New Member

52 Posts

Posted - 17 May 2002 :  05:52:40  Show Profile
This is off the topic, and requires an answer pertaining to ASP programming. Can anyone tell me the code to include a file in another ASP file, which inludes file randomly from a bunch of files.

Thanks.

Sehgal.

Deleted
deleted

4116 Posts

Posted - 17 May 2002 :  06:10:14  Show Profile

...
randomize code
...
decide on filename code (sets a variable strMyIncludeFile)
...
server.execute strMyIncludeFile
...
other code
...


It executes the asp file and returns back.

This only works on IIS 5.x (w2k server and up). There is no good solution for IIS 4, except including all of them in a select case structure.


Think Pink
==> Start Internationalization Here

Edited by - bozden on 17 May 2002 06:13:23
Go to Top of Page

Sehgal
New Member

52 Posts

Posted - 17 May 2002 :  06:16:32  Show Profile
Dear Bodzen,

Thanks for trying to assist me, but can u plz answer little elaborately, and tell steps in sequence, I am not an ASP programmer, otherwise I would be understood, what u said, thanks.


Sehgal.

Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 17 May 2002 :  06:44:31  Show Profile
quote:

Dear Bodzen,

Thanks for trying to assist me, but can u plz answer little elaborately, and tell steps in sequence, I am not an ASP programmer, otherwise I would be understood, what u said, thanks.

Sehgal.



Uh. It will take some time to develop and test it and currently I don't have it. Perhaps someone other than me can do this. Sorry.

Think Pink
==> Start Internationalization Here
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 1.81 seconds. Powered By: Snitz Forums 2000 Version 3.4.07