<?xml version="1.0" encoding="utf-8"?> <EmpolyeeDetails> <Employee EmpId="001"> <Name>Admin</Name> <Designation>SalesMan</Designation> <Phone>343434</Phone> <Address>xxxxxxx</Address> <Password>temp@123</Password> </Employee> <Employee EmpId="002"> <Name>Kamal</Name> <Designation>6546565</Designation> <Phone>SalesMan</Phone> <Address>testing</Address> <Password>temp@123</Password> </Employee> </EmpolyeeDetails>
Dim Ds As DataSet = New DataSet Dim tb As DataTable = New DataTable Ds.ReadXml(Server.MapPath("~/filename.xml")) tb = Ds.Tables("Tablename") If Not Page.IsPostBack Then GridView1.DataSource = Ds GridView1.DataBind() End If
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)