Blog Of Sem: visual studio asp datasource olarak xmli kullanmak

visual studio asp datasource olarak xmli kullanmak

new empty web project
insert new web page adı index.aspx
insert new item xml
içine :
<?xml version="1.0" encoding="utf-8" ?>
<Students>
  <Student
    StudentID="1"
    FirstName="A"
    LastName="AA"
    TotalMarks="100">
  </Student>
  <Student
    StudentID="2"
    FirstName="B"
    LastName="BB"
    TotalMarks="200">
  </Student>
  <Student
    StudentID="3"
    FirstName="C"
    LastName="CC"
    TotalMarks="500">
  </Student>
  <Student
    StudentID="4"
    FirstName="D"
    LastName="DD"
    TotalMarks="700">
  </Student>
</Students>

ve gridview at ve datasource xmlden xml dosyasını seç