Connecting Tech Pros Worldwide Help | Site Map

XML Island DSO binding

chrisk
Guest
 
Posts: n/a
#1: Nov 17 '05
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.MoveFi rst();"
type="button" value="<">
<INPUT id="cmdNavNext" onclick="xmlIsland.recordset.MoveNext();
if(xmlIsland.recordset.EOF)xmlIsland.recordset.Mov eLast();"
type="button" value=">">
<INPUT id="cmdNavLast" onclick="xmlIsland.recordset.MoveLast()"
type="button" value=">>">
Natty Gur
Guest
 
Posts: n/a
#2: Nov 17 '05

re: XML Island DSO binding


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


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
chrisk
Guest
 
Posts: n/a
#3: Nov 17 '05

re: XML Island DSO binding


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.
chrisk
Guest
 
Posts: n/a
#4: Nov 17 '05

re: XML Island DSO binding


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

Natty Gur <natty@dao2com.com> wrote in message news:<#2TLJOYWDHA.2376@TK2MSFTNGP11.phx.gbl>...[color=blue]
> 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
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it![/color]
Natty Gur
Guest
 
Posts: n/a
#5: Nov 17 '05

re: XML Island DSO binding


http://www.15seconds.com/issue/010205.htm

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


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Closed Thread