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


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