473,386 Members | 1,644 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

XML Island DSO binding

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=">>">
Nov 17 '05 #1
4 1436
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!
Nov 17 '05 #2
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.
Nov 17 '05 #3
The DSO provides a client side recordset to work with automatically
for an XML Island.

Natty Gur <na***@dao2com.com> wrote in message news:<#2**************@TK2MSFTNGP11.phx.gbl>...
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!

Nov 17 '05 #4
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!
Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Kerri | last post by:
We're looking for a web programmer with extensive experience with PHP & MySQL specifically related to custom shopping cart implementation & content management. Familiarity with SSL and payment...
5
by: Tim | last post by:
I've been working on this for over a week now, and just can't get this figured out. Hoping one of you gurus can help me out here. I have an xml data island that I'm representing on an htm page as...
1
by: jlynker | last post by:
Can href= value be filled in by a datafld variable? After reviewing the link object, data islands and anchors array, there's something missing here. I would like to keep an XML file of URLs and...
3
by: Bishfish | last post by:
I have an XML document containing 400+ quotations, in the format: quotes qtnum title author comment quotes ...400+ more XML file size 156Kb
3
by: Nicole Schenk | last post by:
I need to know the code I must write to respond xml to a data island as a result from a src request from the data island. Thanks so much
1
by: Mark Goldin | last post by:
Is there a control that would act as an xml data island? Another words, it can store static xml data and deliver it to the client side? Thanks
3
by: Pat Alessi | last post by:
I want to use an XML data island to display editable records to a user on the cleint side. The user should be able to scroll through the records, modify any or all fields in any or all records, add...
2
by: adolf garlic | last post by:
I have an aspx which has some client side script. The client side part of the page also features an xml data island What I want to be able to do is to get at the data island from the server...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.