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
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