Microsoft KB Archive/311008

= PRB: MMIT Controls HTML-Encode the Text Property =

Article ID: 311008

Article Last Modified on 6/14/2002

-

APPLIES TO


 * Microsoft Mobile Internet Toolkit 1.0

-



This article was previously published under Q311008



SYMPTOMS
When you set the Text property of a Microsoft Mobile Internet Toolkit (MMIT) control, you may notice that the text becomes HTML-encoded.



CAUSE
This behavior occurs because MMIT controls (except for the TextView control) encode the text with HTML in the Text property.



STATUS
This behavior is by design.



Steps to Reproduce the Behavior

 * 1) Create a mobile Web Application.
 * 2) In Design view, drag a Link control onto the Web Form.
 * 3) In the properties window, type the following in the Text property:

When you switch back to HTML mode, you see the following code: &amp;nbsp; When this code is displayed in a browser, you see the actual text that was entered as the Text property, which is ; however, if you view the source code of the page, you see the following

&amp;nbsp;

because the Text property HTML-encodes any text that is passed to it.

Keywords: kbprb kbservercontrols KB311008

-

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

© Microsoft Corporation. All rights reserved.