The things I learnt while I migrated from classic asp to is given here for my reference as well as for new beginners.


Working ASP.NET code

for using XML file as a Database

XML Code for emp.xml file
<?xml version="1.0" encoding="iso-8859-1"?>

ASP.NET Code for

<%@ Import Namespace="System.Data" %>
<script runat="server">
sub Page_Load
if Not Page.IsPostBack then
dim empDataSet=New DataSet
end if
end sub

<form runat="server">
<asp:Repeater id="empRepeater" runat="server">

<table border="1" >
<th align="left">Name</th>
<th align="left">Age</th>

<td><%#Container.DataItem("name")%> </td>
<td><%#Container.DataItem("age")%> </td>

Just copy the above two files in proper location and open the file simpleRepeater.aspx. You will get the result like this :

Name Age
Raja 25
Peter 23

Here XML file acts just like a Database

Thanks for Your Visit

Google Search
Disclaimer and Copy Right