October 2010
Intermediate to advanced
1920 pages
73h 55m
English
Let’s start by building a simple User control that randomly displays one image from a folder of images (see Figure 7.1). The code for the User control is contained in Listing 7.1.
Figure 7.1. Displaying an image with the RandomImage User control.

Listing 7.1. RandomImage.ascx


You create a new User control in Visual Web Developer by selecting website, Add New Item, and the Web User control ...