How to fill datalist usinf XML file and how to bind it,code behind language is c#

Plz give answer

Showing Answers 1 - 1 of 1 Answers

Ans:

Hello i have written this code my project it working fine

//

Create dataset

DataSet ds=new DataSet()

//readXml file

ds.readXml(Server.MapPath("*.xml"))

//Create datalist object

let's

protected System.Web.UI.WebControls.DataList DataList1;

//here bind the dataSource by using datalis

DataList1.DataSource=ds;

DataList1.DataBind();

//end

i hope it will help u.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions