using a variable to display the number of images
Posted on 2007-03-23
I am not sure if this is the right forum or not so, my apologies before hand if I am guilty. I have a ASP.Net 1.1 C# application that has a property retrieving value (int) from my database. I would like to use this value as the number of images to dispaly in the page. I have two images (image1.gif and Image2.gif) in my \image folder on my file system. If the property value(int) is zero(0) image1.gif will be displayed; if the property value(int) is 1 or greater, image2.gif will be displayed the number of times the value is equal to. For clarification if the value is 3, three image2.gif files will be displayed on the page. I am not sure if I should use javascipt for this or if ASP.net can handle this. An example would be helpful. Need urgent help! I hope I was clear about my requirements.
Thanks In Advance for you help on this.