XML Island DSO binding

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=">>">
 
N

Natty Gur

Hi,

Currect me if i wrong,

on the client side you got plain XML and not an (recordset) object ?

Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
 
C

chrisk

The XML tags tell IE to recognize it as an XML Island and creates a
DSO recordset for reference by the "id" attribute found within the XML
tag.
 
C

chrisk

The DSO provides a client side recordset to work with automatically
for an XML Island.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top