Saturday, 15 September 2012

reading xml to dataset


//reading the xml data to dataset
            DataSet ds = new DataSet();
            ds.ReadXml(HttpContext.Current.Server.MapPath("~/UploadFile/" + Session["Name"].ToString()) + ".xml");
            GridView1.DataSource = ds.Tables[0];
            GridView1.DataBind();

No comments:

Post a Comment