Hi Experts,
I found the below code from the article page.
http://www.dotnetfunda.com/articles/article12.aspx
private void LoadDataTable()
{
string str = string.Empty;
string path = Server.MapPath("~/GridData.xml");
int i = 0;
DataSet dSet = new DataSet();
dSet.ReadXml(path);
DataTable dTable = dSet.Tables[0];
foreach (DataRow dRow in dTable.Rows)
{
i++;
str += "ROW " + i.ToString() + " : <b>Name: </b>" + dRow["FirstName"].ToString() + " " + dRow["LastName"].ToString() + ", <b>Address: </b>"+ dRow["Address"].ToString() +", <b>Profession: </b>" + dRow["Profession"].ToString() + "<br />";
}
litText.Text = str;
}
I need the same result from the excel sheet as a back end. Could you please help me.
Regards,
Gopi A