BizTalk Utilities CV ,   Jobs ,   Code library
 
Home Page


Add/Edit your code items
Search the code library
Browse for the code library


Uncategorized
How to bind a XML to a DataGrid?
How to bind a XML File to a DropDownList?
How to use '&' in a XML file?
xframe - xsddoc 0.8-beta released
VCalendar - an open source Web calendar
Mortgage rate trends in 2006 – to help you make the right moves.


 
 

<< System.XMLWCF, WS, SOAP >>


By Sonu Kapoor
First Posted 02/20/2005
Times viewed 138

How to bind a nested xml to a repeater control with Container.DataItem?


Summary How to bind a nested xml to a repeater control with Container.DataItem?

If you have a nested XML structure, than you simply can not bind it to a repeater control and expect that you can get the result from the XML file. For that purpose you will need to change a bit code of Container.DataItem. In the following example I assume that you know how to include a repeater control with Visual Studio. I am using the following XML file.  

The following code will bind the ID and the value of the MainCategory element to the repeater control.

Reference: Thanks to Kirk Allen Evan for this great tip.

Additional information

Further additional information


Rate this article on a scale of 1 to 10 (0 votes, average 0)

Your vote :  

<< System.XMLWCF, WS, SOAP >>





Leave a comment for this article
Your name
Your email (optional)
Your comment
Optional: Upload an attachment
Enter the code shown:

 
 

    Email TopXML