Bind Repeater Control through XML

.aspx page
Title Country Company Price Year
<%#Eval("title")%> <%#Eval("country")%> <%#Eval("company")%> <%#Eval("price")%> <%#Eval("year")%>

.aspx.cs page Write the below code in !ispostBack DataSet ds = new DataSet(); ds.ReadXml(Server.MapPath("myProduct.xml")); repProductDetails.DataSource = ds; repProductDetails.DataBind();

Comments