Home
|
Articles
|
Namespace
|
Interview Questions
|
Tools
|
Jobs
|
Projects
|
Community
»Dotnet Ads
»Message Boards
Message Boards
Dotnet Books
»Member Details
Register
Login
LogOut
Submit Code
Submit Jobs
Submit Projects
»Competition
Community
Winners
Prizes
Write For Us
Members
»Other Resources
Links
Dotnet Resources
Forums
»
ASP.NET Forums»
Randomly generate images
You could set up a string array with the path to each image. You could then create a random number with a minimum and maximum value. 0 for the 1st image and so on. You could then set the image equal to the array item generated by the random number. Something like this. Random num = new Random(); int item = num.Next(0, 9); //assuming you have 10 images in your array. Image1.ImageUrl = array[item]; Nathan
© 2008 dotnetwatch.com --
Privacy policy
Website Design
&
Internet Marketing
by Shivam