.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

xml

Posted By:      Posted Date: September 11, 2010    Points: 0   Category :ASP.Net
 
i have a xml file <DocumentElement>  <emptable>    <eno>1</eno>    <ename>Rahul Choudhary</ename>    <eadd>Chandigarh</eadd>    <esal>12000</esal>  </emptable>  <emptable>    <eno>2</eno>    <ename>atul</ename>    <eadd>awasthi</eadd>    <esal>8</esal>  </emptable></DocumentElement>i want to show it on my form my code is XmlReader xmlfile;        xmlfile = XmlReader.Create("file:///M:\\XML\\XMl3\\emp.xml", new XmlReaderSettings());        DataSet ds = new DataSet();        ds.ReadXml(xmlfile);        DataView dv;        dv = new DataView(ds.Tables[0], "ename='atul'", "ename", DataViewRowState.CurrentRows); //   dv = new DataView(ds.Tables[0], "eno=1", "eadd", DataViewRowState.CurrentRows);        GridView1.DataSource = dv;                GridView1.DataBind();but i


View Complete Post


More Related Resource Links

Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend