Source code for books1.aspx |  Run the Sample |  Home

<%@ Import Namespace="System.IO" %> 
<%@ Import Namespace="System.Data" %> 

<script language="VB" runat="server">

Sub Page_Load(Src As Object, E As EventArgs) 
        Dim ds As New DataSet 
        Dim FS As New FileStream(Server.MapPath("books.xml"), FileMode.Open) 
        ds.ReadXml(FS) 
        MyDataGrid.DataSource = new DataView(ds.Tables(0)) 
        MyDataGrid.DataBind() 
        FS.close() 
End Sub

</script>

<html>
<body>

</ASP:DataGrid id="MyDataGrid" runat="server">
  Width="600" 
  BackColor="white" 
  BorderColor="black" 
  ShowFooter="false" 
  CellPadding=3 
  CellSpacing="0" 
  Font-Name="Verdana" 
  Font-Size="8pt" 
  Headerstyle-BackColor="lightblue" 
  Headerstyle-Font-Size="10pt" 
  Headerstyle-Font-Style="bold" 
/>

</body>
</html>


©2001 Alentus Corporation. All rights reserved. | Alentus Homepage | Alentus Support Site |