You should store the images under the themes and set the ImageUrl in the skin file. Give the control a SkinID in both the skin file and in the page. When the theme changes the appropriate image will be used.
Marked as answer by pkellner on May 25, 2008 05:00 PM
Dave Sussman
All-Star
37716 Points
5005 Posts
ASPInsiders
MVP
Re: How to make a theme independent reference to an image
May 25, 2008 04:15 PM|LINK
You should store the images under the themes and set the ImageUrl in the skin file. Give the control a SkinID in both the skin file and in the page. When the theme changes the appropriate image will be used.