View wizard / details with XmlDataSources

I have a basic test web form with DataList and DetailsView and two XmlDataSource components for each one.

Binding the DataList to the underlying XML document was easy to set up, but I'm struggling to wire the DetailsView. The idea is that there is a relationship between the master data and the details between the two bound controls, so my guess is that I have to hook into the OnSelectedItemIndexChanged in the DataList to bind the currently selected item in the DetailsView. But what is the correlation key / how to set the DataKeyField when I use the XmlDataSource to get this to work?

amuses,

- larsw

0


source to share


2 answers


Wow! I am doing exactly this right now, but using Object Data Source :)

I am following an excellent tutorial on the subject from Matt Berseth , check his post .



It will be pretty much the same, the only thing you are using is a different DataSource, but the rest is the same!

0


source







All Articles