I'm working with the ASP.Net 4.0 Preview 3 build. I've been unsuccessful in my attempts to bind the value of 'PrefValue' (returned by the HTTP response) to the 'li' element. I'm not getting any errors and the data that I'm looking for is getting returned, but I can't get it to bind to the 'li' element. I'm hoping that someone can review my code and see what I need to change.
HTML
<body xmlns:sys="javascript:Sys"
xmlns:dataview="javascript:Sys.UI.DataView"
sys:activate="*">
<h1>Title</h1>
<div id="">
<ul id="" class="sys-template" sys:attach="dataview"
dataview:datasource="{{ new Sys.Data.AdoNetDataSource() }}"
dataview:serviceuri="Service.svc"
dataview:query="GetWidgetPrefValue">
<li>{{ PrefValue }}</li>
</ul>
</div>
</body>
Service.svc
<WebGet()> <OperationContract()> _
Public Function GetWidgetPrefValue() As DataSet
Dim WidgetID As Int16 = 9
Dim CorpID As String = "emanon"
Dim PrefID As Int16 = 2
Dim ds As New DataSet
Dim dt As New DataTable
Dim da As New DSTableAdapters.PrefsMyWidgetsTableAdapter
dt = da.GetWidgetPrefValue(WidgetID, CorpID, PrefID)
ds.Tables.Add(dt)
If Not ds.Tables(0).Rows.Count = 0 Then
Return ds
End If
Return Nothing
End Function
HTTP Response
{"d":"<DataSet><xs:schema id="NewDataSet" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata
="urn:schemas-microsoft-com:xml-msdata"><xs:element name="NewDataSet" msdata:IsDataSet="true" msdata
:UseCurrentLocale="true"><xs:complexType><xs:choice minOccurs="0" maxOccurs="unbounded"><xs:element
name="PrefsMyWidgets"><xs:complexType><xs:sequence><xs:element name="PrefValue" minOccurs="0"
><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="2048"/></xs:restriction>
</xs:simpleType></xs:element></xs:sequence></xs:complexType></xs:element></xs:choice></xs:complexType
></xs:element></xs:schema><diffgr:diffgram xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1
" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"><NewDataSet><PrefsMyWidgets diffgr:id="PrefsMyWidgets1
" msdata:rowOrder="0"><PrefValue>#FFFFFF</PrefValue></PrefsMyWidgets></NewDataSet></diffgr:diffgram
></DataSet>"}