[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.mobile

XMLDataDocument on a mobile form?

Nabeel

9/13/2003 3:11:00 AM

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