xmlfile in asp.net
i want to read a xml file and display in table format ..
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Master BillaPosted Aug 14, 2009, 4:14 AM
Just write code like this way
add a grid in your page and code this code and paste under the button click
string fileName = "test.xml";
DataSet ds = new DataSet();
ds.ReadXml(fileName);
GridViewi.DataSource = ds.Tablesds[0];
GridViewi.DataBind();
Note:supply the file path
thank you