C
chrisk
Trying to due current recordset (DSO) binding using an XML Data
Island. The data displays correctly when the page loads. I am
embedding the datasrc and datafld attributes within a TemplateColumn
(asp:Label) in a DataGrid. Whenever I try to do a move next on the
recordset, the browser reports it is null. I have seen every article
on msdn and other sites. Searched high and low with no joy. Any help
is appreciated. I intend to later on use dhtml to modify the datafld
attribute as the user makes a selection in the browser.
Snippets of the aspx is below.
Thanks,
Chris
<xml id="xmlIsland" src="ckxml.xml"></xml>
<asp:TemplateColumn HeaderText="Preview">
<ItemTemplate>
<asp:Label id=SrcPreview Text='<%# DataBinder.Eval(Container,
"DataItem.SourcePreview") %>' runat="server" datasrc="#xmlIsland"
datafld="Col_x0020_A" DATAPAGESIZE=1>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<INPUT id="cmdNavFirst" onclick="xmlIsland.recordset.MoveFirst()"
type="button" value="<<">
<INPUT id="cmdNavPrev" onclick="xmlIsland.recordset.MovePrevious(); if
xmlIsland.recordset.BOF)xmlIsland.recordset.MoveFirst();"
type="button" value="<">
<INPUT id="cmdNavNext" onclick="xmlIsland.recordset.MoveNext();
if(xmlIsland.recordset.EOF)xmlIsland.recordset.MoveLast();"
type="button" value=">">
<INPUT id="cmdNavLast" onclick="xmlIsland.recordset.MoveLast()"
type="button" value=">>">
Island. The data displays correctly when the page loads. I am
embedding the datasrc and datafld attributes within a TemplateColumn
(asp:Label) in a DataGrid. Whenever I try to do a move next on the
recordset, the browser reports it is null. I have seen every article
on msdn and other sites. Searched high and low with no joy. Any help
is appreciated. I intend to later on use dhtml to modify the datafld
attribute as the user makes a selection in the browser.
Snippets of the aspx is below.
Thanks,
Chris
<xml id="xmlIsland" src="ckxml.xml"></xml>
<asp:TemplateColumn HeaderText="Preview">
<ItemTemplate>
<asp:Label id=SrcPreview Text='<%# DataBinder.Eval(Container,
"DataItem.SourcePreview") %>' runat="server" datasrc="#xmlIsland"
datafld="Col_x0020_A" DATAPAGESIZE=1>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<INPUT id="cmdNavFirst" onclick="xmlIsland.recordset.MoveFirst()"
type="button" value="<<">
<INPUT id="cmdNavPrev" onclick="xmlIsland.recordset.MovePrevious(); if
xmlIsland.recordset.BOF)xmlIsland.recordset.MoveFirst();"
type="button" value="<">
<INPUT id="cmdNavNext" onclick="xmlIsland.recordset.MoveNext();
if(xmlIsland.recordset.EOF)xmlIsland.recordset.MoveLast();"
type="button" value=">">
<INPUT id="cmdNavLast" onclick="xmlIsland.recordset.MoveLast()"
type="button" value=">>">