Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bind DataGrid to an xml string
Message
 
À
19/02/2004 15:14:10
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00878908
Message ID:
00878958
Vues:
19
>If I have an xml string can bind DataGrid or any other tabular control to it?
>Converting a string into a file first is not an option.
>
>Thanks

Will this help?
Sub Page_Load(Sender As Object, E as EventArgs)
  
' Response.write("XML Example")
    Dim xmlFilename As String 
    xmlFilename= "C:\Data\atoms.xml"
    Dim newDataSet As New DataSet
    newDataSet.ReadXML(xmlFilename)
    DataGrid1.DataSource = newDataSet
    DataGrid1.DataBind()
End Sub
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform