Binding to text box value property fails in Microsoft AJAX Client Templates beta release -


The code below should be tied to the "value" property of the text box in the "test" string.

Binding expression "{{test}}" is left as text box content instead. Compulsive expression is parsed properly within the brother-sister element.

  & lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; & Lt; / Title & gt; & Lt; Style type = "text / css" & gt; .sys-template {display: none; } & Lt; / Style & gt; & Lt; Script type = "text / javascript" src = "http://ajax.microsoft.com/ajax/beta/0911/MicrosoftAjax.debug.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "http://ajax.microsoft.com/ajax/beta/0911/MicrosoftAjaxTemplates.debug.js" & gt; & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body xmlns: sys = "javascript: sys" xmlns: dataview = "javascript: sys.UI.DataView" sys: active = "bitingtest" & gt; & Lt; Div id = "bindingTest" class = "sys-template" sys: attach = "dataview" dataview: data = "{{test: 'test'}}}" & gt; & Lt; Input type = "text" value = "{{test}}" /> should be: & lt; Span & gt; {{Test}} & lt; / Span & gt; & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

This same code works when linking to related script in ASP.NET AJAX Preview 4 release (as far as I can tell that codepax is no longer available, but sample zip Posted in)

Is this a regression, or am I missing something?

I found that sys: qualifies the value attribute with namespace The binding enables you to work properly:

  & lt; Input type = "text" sys: value = "{{test}}" />  

This was a change made in ASP.NET AJAX 4.0 preview 5:

< / Div>

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -