ASP 101 - Active Server Pages 101 - Web01
The Place ASP Developers Go!

Please visit our partners

Windows Technology Windows Technology
15 Seconds
ASP 101
ASP Wire
VB Forums
VB Wire
internet.commerce internet.commerce
Partners & Affiliates

ASP 101 is an site
ASP 101 is an site
Internet News
Small Business
Personal Technology

Corporate Info
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash

ASP.NET version of "Random Number"

The second of this week's new samples deals with random number generation. It not only illustrates how to use the .NET Framework's Random class, but also does some form validation using the ASP.NET validation controls which makes it worth a quick look even if you don't plan on randomizing anything.

Of particular interest is the third validation control. It doesn't just validate against a constant or check for a value in a static range. Instead it compares to the value of another control on the page. It's not really all that hard, but it's pretty cool and darn useful.

Here's a zip file of the code (1.3 kb).

Play with the running version.

Back to the "Random Number" sample


Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback
The Network for Technology Professionals



Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers