Microsoft KB Archive/309416

= BUG: Image Control in StyleSheet Is Not Displayed =

Article ID: 309416

Article Last Modified on 4/4/2003

-

APPLIES TO


 * Microsoft Mobile Internet Toolkit 1.0

-



This article was previously published under Q309416



SYMPTOMS
If you reference a StyleSheet control that is contained in an external, mobile User Control (.ascx file), the Image controls in the StyleSheet control may not be displayed when you browse to the mobile Web Form page.



CAUSE
When you reference a StyleSheet control that contains an Image control, if the Image control is using a relative URL (ImageUrl=&quot;images/someimage.wbmp&quot;), the image may not be displayed. When you use an external StyleSheet control, any relative paths are relative to the mobile Web Form (.aspx file) and not the User Control (.ascx file).



RESOLUTION
To work around this problem, use an absolute URL, or make sure that the ImageUrl property of the Image control is relative to the .aspx page and not the .ascx page that you want to display.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

Keywords: kbbug kbnofix kbservercontrols KB309416

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.