In your ASP.NET 2.0 web application you want to display an image that is selected from a collection of images. What approach will you use to implementing this?

Options
- Use the ImageMap control and randomly select a HotSpot to show or hide.
- Use the Image control to hold the image and a Calendar control to randomly select a date for each image to be displayed.
- Use the AdServer control and create an XML file with configuration of the control.
- Use an ImageButton control to predict randomness of the image to be loaded based on the clicks of the control.


CORRECT ANSWER : Use the AdServer control and create an XML file with configuration of the control.

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement