XMLDataDocument on a mobile form?

P

prince -=nore=-

Hi,
I need to know how to use XMLDataDocument to load data onto a mobile page.
I think my "List1.DataTextField " and "List1.DataValueField " fields are
incorrect below

My code so far:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

If Not Page.IsPostBack Then

Dim myDataDoc As New XMLDataDocument

myDataDoc.DataSet.ReadXmlSchema(Server.MapPath("sports.xsl"))

myDataDoc.Load("sports.xml")

List1.DataTextField = myDataDoc.DataSet.Tables("title").ToString

List1.DataValueField = myDataDoc.DataSet.Tables("link").ToString

List1.DataBind()

End If

End Sub

======

'prince
 

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

Members online

Forum statistics

Threads
473,756
Messages
2,569,533
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top