How do i use Database with ASP.NET or AJAX

How do i use Database with ASP.NET or AJAX

ninadjagtapninadjagtap Posts: 2Questions: 0Answers: 0
edited June 2010 in General
Hello All,

In my application i am reading some XML file into Dataset from an asp.net page, then trying to bind that to datatable, but not able to do it.

Here my code in WebForm4.aspx codebehind
[code]
protected void Page_Load(object sender, EventArgs e)
{
Response.Clear();
Response.ContentType = "text/xml";
FileStream fs = new FileStream(@"C:\Ninad\xmlFeeds\Sample1.xml", FileMode.Open);

DataSet ds = new DataSet();
ds.ReadXml(fs);
Response.Write(ds.GetXml());
Response.End();
}
[/code]
Now on WebForm3.aspx i have a datatable which i want to fill with data coming from WebForm4.aspx, heres the code in WebForm3.aspx
[code]

$(document).ready(function(){
$('#demo').html('');

$('#example').dataTable({
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "../WebForm4.aspx"
}); //End of dataTable

}); //End of dataTable









[/code]
How do i bind the datafrom WebFor4.aspx to the datatable in WebForm3.aspx?
This discussion has been closed.