This is a discussion on How to set Random image selector in asp.net ? within the ASP and ASP.NET Programming forums, part of the Web Development category; How to set Random image selector in asp.net ?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| To Display the Images in Random, Add numbers as PostFix to the Names of the images like Image1, Image2.., Then use the following code to display the images, Aspx page, Use one div to hold the image tag, <div id="tipsBox"> <img alt="Keep the Look with all..." src="ImagePath/<%# tipsBox %>.jpg" /> </div> C# Code Behind Create the instance to the Random class, Random randomTipsBox = new Random(); tipsBox +="Image"+ randomTipsBox.Next(1, 9); |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to create random number in c? | Murali | C and C++ Programming | 6 | 07-23-2008 12:26 AM |
| Convert image to other image format using CODEC in .NET 3.0 | Mramesh | C# Programming | 0 | 02-07-2008 03:33 AM |
| popup date selector return dates to different form fields. | itbarota | HTML, CSS and Javascript Coding Techniques | 3 | 01-08-2008 10:19 PM |
| How to create an image from panel background Image | S.Vinothkumar | C# Programming | 1 | 10-22-2007 03:52 AM |
| MySql Random string | priyan | Database Support | 3 | 07-13-2007 08:31 AM |