October 2010
Intermediate to advanced
1920 pages
73h 55m
English
The RandomImage User control always displays an image from the Images folder. It would be nice if you could specify the name of the folder that contains the images so that you could use different folder paths in different applications. You can do this by exposing a property from the RandomImage User control.
The modified RandomImage control in Listing 7.5, named PropertyRandomImage, exposes a property named ImageFolderPath.
Listing 7.5. PropertyRandomImage.ascx


After you expose a property in a User control, ...
Read now
Unlock full access