Microsoft KB Archive/309819

= PRB: Declarative Data Binding Does Not Work in the Mobile Textbox Control =

Article ID: 309819

Article Last Modified on 6/14/2002

-

APPLIES TO


 * Microsoft Mobile Internet Toolkit 1.0

-



This article was previously published under Q309819



SYMPTOMS
When you use declarative or inline data binding with the mobile TextBox control, the binding does not evaluate at runtime when you use the following code:  <%# Data Binding Syntax %> 



CAUSE
This behavior occurs because the mobile TextBox control omits any data binding code or text that is located after a carriage return and discards all leading and training spaces.



RESOLUTION
Use one of the following two methods to work around this behavior:   Remove any carriage returns after you start the mobile Textbox tag. You can use the following code in a mobile Web Form: <%# Data Binding Syntax %> -or-

  Place the data binding syntax in the text property. You can use the following code in a mobile Web Form: '> 

<div class="status_section">

STATUS
This behavior is by design.

Additional query words: Databinding in-line in line

Keywords: kbdatabinding kbprb kbservercontrols KB309819

-

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

© Microsoft Corporation. All rights reserved.