Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2005

Tip: Looking for answers? Try searching our database.

Best method to redirect randomly at 10:1

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Grant Merwitz - 15 Jul 2005 16:00 GMT
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
Scott Allen - 15 Jul 2005 18:14 GMT
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/

>Hi
>
[quoted text clipped - 15 lines]
>
>Thanks for any help on this

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.