473,503 Members | 722 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Best method to redirect randomly at 10:1

Hi

We are conducting a test with our website.
We are going to redirect every 1 in 10 visitors to a new default homepage to
determine the effectiveness of this page.

I'm looking for ideas on how to do this.

1 thought i've already had:

Everytime a visitor comes to the site, i can hold an application
variable with a number in it, and increment it by 1.
When that gets to 10, i can send that user to the test default page, and
reset the app variable back to one.

Any other ideas, or better methods.
Or even problems with this potential method.

Thanks for any help on this
Nov 19 '05 #1
1 1047
Hi Grant:

You can roll the dice with the Random class. The Next method will give
you a random number, inside of a range if you wish. Based on this
number you could decide if you want to redirect. This approach would
be more random than redirecting every 10th request.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Fri, 15 Jul 2005 16:00:09 +0100, "Grant Merwitz"
<gr***@workshare.com> wrote:
Hi

We are conducting a test with our website.
We are going to redirect every 1 in 10 visitors to a new default homepage to
determine the effectiveness of this page.

I'm looking for ideas on how to do this.

1 thought i've already had:

Everytime a visitor comes to the site, i can hold an application
variable with a number in it, and increment it by 1.
When that gets to 10, i can send that user to the test default page, and
reset the app variable back to one.

Any other ideas, or better methods.
Or even problems with this potential method.

Thanks for any help on this


Nov 19 '05 #2

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

Similar topics

3
1910
by: William Tasso | last post by:
Greetings one and all I've just taken over a site and I'm changing the files from .htm to .asp. What's considered the best practice method of indicating the source of the new document? ...
4
2701
by: James | last post by:
Just learning C#. What's the easiest way to assign numbers 1-10 randomly to an array? Basically I just want to take the numbers 1-10 and arrange them randomly in slots 0-9 of an array. Thanks
6
4299
by: Sam | last post by:
I have some issues with HTTP Headers and I was hoping for some pointers or references to good articles. Here is the problem. I have 6 .aspx pages, each page contains a common .ascx. This ascx...
1
1874
by: Ryan McLean | last post by:
Hi everyone! What is happening is the method: sub_btnSubmitClicked is being executed every time any other object with a Handler is executed. I am trying not to use the withevents and handles...
0
4198
by: Anonieko Ramos | last post by:
ASP.NET Forms Authentication Best Practices Dr. Dobb's Journal February 2004 Protecting user information is critical By Douglas Reilly Douglas is the author of Designing Microsoft ASP.NET...
5
5251
by: fbwhite | last post by:
I know this issue has been brought up many times, but I have tried many of the solutions to no avail. I wanted to give my specific case to see if someone could be of any help. We are using the...
7
6972
by: h7qvnk7q001 | last post by:
I'm trying to implement a simple server-side form validation (No Javascript). If the user submits a form with errors, I want to redisplay the same form with the errors highlighted. Once the form...
3
1967
by: mathewda | last post by:
I'm currently work'n on a project where I'm dynamically generating some HTML as text into a string builder. My ASP page has a <span> tag on it and after I gernerate HTML to my string builder I...
51
3584
by: bigHairy | last post by:
Hello. I have been teaching myself .NET over the last few months and have had some success. I would like to ask a question though... A number of examples I have followed have the following in...
0
7089
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7282
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7339
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7463
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5017
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4678
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
738
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
389
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.