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

Please visit our partners


Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates














ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
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


Samples

Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

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