Xmlfile in asp.net
i want to read a xml file and display in table format ..
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Master BillaRank #2,229 · 630 reputationPosted Aug 14, 2009, 12:14 AM EDT
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