473,326 Members | 2,680 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Random Server Side Includes

Hi all,
What I would like to do is randomize which file gets used with as a server
side include. Here is what I have so far:
<%
Const Max_Number_Of_Includes = 6
Randomize
Dim intRandomNumber, strIncludeArray(10)
strIncludeArray(0) = "includefile_1.shtm"
strIncludeArray(1) = "includefile_2.shtm"
strIncludeArray(2) = "icludefile_3.shtm"
strIncludeArray(3) = "icludefile_4.shtm"
strIncludeArray(4) = "icludefile_5.shtm"
strIncludeArray(5) = "icludefile_6.shtm"
intRandomNumber = Int((Max_Number_Of_Includes * Rnd))
<!--#include file= strIncludeArray(intRandomNumber) -->
%>

The last line is where I am confused.
Any help would be appreciated.

Regards,
Steve Karnath
Jul 19 '05 #1
3 1762
FEEL THE WIND!

-dlbjr

Discerning resolutions for the alms
Jul 19 '05 #2
n/a
come on, what in the world is this??????????????

On Wed, 17 Sep 2003 17:28:36 -0500, "dlbjr" <do******@do.u> wrote:
FEEL THE WIND!

-dlbjr

Discerning resolutions for the alms


Jul 19 '05 #3
"Microsoft News" <sk******@sbcglobal.net> wrote in message
news:eS**************@TK2MSFTNGP11.phx.gbl...
Hi all,
What I would like to do is randomize which file gets used with as a server side include. Here is what I have so far:
<%
Const Max_Number_Of_Includes = 6
Randomize
Dim intRandomNumber, strIncludeArray(10)
strIncludeArray(0) = "includefile_1.shtm"
strIncludeArray(1) = "includefile_2.shtm"
strIncludeArray(2) = "icludefile_3.shtm"
strIncludeArray(3) = "icludefile_4.shtm"
strIncludeArray(4) = "icludefile_5.shtm"
strIncludeArray(5) = "icludefile_6.shtm"
intRandomNumber = Int((Max_Number_Of_Includes * Rnd))
<!--#include file= strIncludeArray(intRandomNumber) -->
%>

The last line is where I am confused.
Any help would be appreciated.

Regards,
Steve Karnath

http://aspfaq.com/2042
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: HarveyB | last post by:
I would like to generate non-modal popup windows from ASP.Net code-behind. I have tried using Client Side scripting like "function Test(){ window.open('test.htm',_blank,...
0
by: ActiveUp | last post by:
http://www.activeup.com/products/components/activecalendar Active Calendar is an ASP.NET server control that allows users to select a date and/or time quickly using a professional looking date...
11
by: Tom | last post by:
Hi all, I posted the same question one week ago in http://communities.microsoft.com/newsgroups/previewFrame.as p? ICP=msdn&sLCID=us&sgroupURL=microsoft.public.dotnet.framewo...
3
by: Earl Teigrob | last post by:
I wanted my "Terms and Conditions" Checkbox control to participate in my ASP.NET validation just like all the the other controls on the page. After some time of searching the web for an example of...
6
by: William F. Zachmann | last post by:
We've got a project going that involves moving an old web site with a massive dll written in C++ that produces most of the output from a SQL 7.0 data base on NT4 onto IIS on Windows 2003 Server...
1
by: Martin Olson | last post by:
is there a way to get the WebDev.WebServer for VS2005 to process server side includes??? thanks for your help on this, mo
7
by: idoxlr8 | last post by:
I have a page that has an included page. I would like to change the included page to a randomly selected page whenever the main page is refreshed. Any pointers would be appreciated. Thanks
3
by: catlover30 | last post by:
I am creating a website using DIV tags for the layout, and attaching the template to a CSS style sheet. I was given an html file that already included the banner and server side includes for...
10
by: RN1 | last post by:
The book I am referring to learn ASP states the following about server- side includes: ============================================== The code in a server-side include file is inserted into the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.