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 Image"

Sometimes it's useful to be able to display a randomly selected image on a web page. Realizing that everyone's situation is a little different, this sample gives you not just one or two, but three different ways to display a random image using ASP.NET.

The methods are basically same as the three methods we use in our classic ASP version, but obviously the code has been updated for .NET. The most notable change is in method three which queries the file system for the list of images to display.

Here's a zip file of the code (2.1 KB).

Play with the running version.

Back to the "Random Image" 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