XMLDataDocument on a mobile form?

Discussion in 'ASP .Net Mobile' started by prince -=nore=-, Sep 13, 2003.

  1. 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
     
    prince -=nore=-, Sep 13, 2003
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steve
    Replies:
    0
    Views:
    826
    Steve
    Feb 29, 2004
  2. =?Utf-8?B?R2VvcmdlIER1cnpp?=

    XmlDataDocument from DataSet with Nested DataRelations

    =?Utf-8?B?R2VvcmdlIER1cnpp?=, May 12, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    1,615
    =?Utf-8?B?R2VvcmdlIER1cnpp?=
    May 12, 2004
  3. Zahoor
    Replies:
    1
    Views:
    997
    Darryl L. Pierce
    Nov 15, 2003
  4. phl
    Replies:
    1
    Views:
    574
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Feb 2, 2007
  5. chen selina
    Replies:
    0
    Views:
    1,634
    chen selina
    Jul 13, 2010
  6. prince -=nore=-

    XMLDataDocument on a mobile form?

    prince -=nore=-, Oct 9, 2003, in forum: ASP .Net Mobile
    Replies:
    0
    Views:
    206
    prince -=nore=-
    Oct 9, 2003
  7. DC Gringo

    referencing an XmlDataDocument in my web form

    DC Gringo, Jan 29, 2004, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    187
    DC Gringo
    Jan 29, 2004
  8. patrick

    WebMethod returning XMLdataDocument

    patrick, Feb 11, 2004, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    338
    patrick
    Feb 11, 2004
Loading...