ASP.Net Repeater XMLDataSource DataBinding using C#

ASP.Net provides a XMLDataSource Control that enables you to bind the XML data to the ASP.Net Repeater control without writing even a single line of code in C#. You just drag and drop the Repeater control and XMLDataSource control on the ASP.Net web page set few properies and its ready to use.

Repeater Control Properties

DataSourceID: it accepts the ID of DataSource control e.g. XMLDataSource1.

XMLDataSource Control Properties

1. DataFile: accepts the path of XML data source file.

2. XPath: to set the XPath expression to read the nodes.

Try the sample below:

  • HIRE EzineASP.Net Developers