Wednesday, February 04, 2009

XMLDataSource Remembered

I always forget this. Sometimes I don't have the db setup but I need to model some web pages based on data. The XMLDataSource comes in really handy for that (in ASP.Net that is). Here is a link to a quick reminder of how to use the XMLDataSource with a little xpath.

http://www.codeproject.com/KB/webforms/XMLDataSource.aspx

Thanks Keyvan Nayyeri

Update: Or you can use XML directly in the XMLDataSource control

https://stackoverflow.com/questions/322190/asp-net-3-5-bind-to-xml-string


No comments: