Microsoft KB Archive/309804

= PRB: Property Override Does Not Run Device-Specific Code =

Article ID: 309804

Article Last Modified on 6/14/2002

-

APPLIES TO


 * Microsoft Mobile Internet Toolkit 1.0

-



This article was previously published under Q309804



SYMPTOMS
When you apply a property override on a mobile control, you may find that the device-specific properties are not applied to the control at run time.



CAUSE
The problem occurs when you use the following tag to define device-specific properties: 



RESOLUTION
To work around this problem, use the following tag to define device-specific properties: 



STATUS
This behavior is by design.



MORE INFORMATION
The  tag is valid when you use a device-specific control directly on a form or within a template. However, when you use this tag within a property override, the property override does not run.

Steps to Reproduce the Behavior
 Create a mobile Web Application, and add a mobile Web Form to the application. Within the mobile designer, switch from Design view to HTML view.  Add the following code between the  tags: <mobile:Image id=&quot;Image1&quot; runat=&quot;server&quot;> <mobile:DeviceSpecific> <Choice AlternateText=&quot;Alternate Text&quot; Filter=&quot;isHTML32&quot;></Choice> </mobile:DeviceSpecific> </mobile:Image> </li> Compile the project, and view the page in an HTML Web browser. Notice that the alternate text does not appear.</li></ol>

Additional query words: execute

Keywords: kbextensibility kbdevicespecific kbtemplate kbprb kbpending kbhtmldevice KB309804

-

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

© Microsoft Corporation. All rights reserved.