TreeView width ASP.NET V2 – Whidbey
[20 mn de lecture - paru le 11/17/2004 3:27:26 PM - Public : Débutant]
|
   
|
Auteur
3. TreeView and data source XML
3.1. Create file XML
Dyears the bar of menu, made: File >> New and SelectXmlFile
Copy below tree structure in your file Xml.
<?xml version="1.0" standalone="yes"?>
<classementClient>
<client name="Client 1" value="client 1">
<dossier name="dossier 1" value="dossier
1">
<facture name="facture 1"></facture>
<facture name="facture 2"></facture>
</dossier>
<dossier name="dossier 2" value="dossier
2">
</dossier>
</client>
<client name="Client 2" value="client 2">
<dossier name="dossier 1" value="dossier
1">
</dossier>
<dossier name="dossier 2" value="dossier
2">
</dossier>
</client>
</classementClient>
|
3.2. XmlDataSource
In your step aspx make slip XmlDataSource control.
On control in top with right click on the fléche to configure the data source.
In the "Data file" to select the Xml file and click on Ok.

Here it is finished.
|