//--------------Default.aspx.cs------------------------------------
[AjaxPro.AjaxMethod]
public static System.Data.DataTable MyDataTable()
{
System.Data.DataTable dt = new System.Data.DataTable();
dt.Columns.Add("FamilyName", typeof(string));
dt.Columns.Add("Birthday", typeof(DateTime));
System.Data.DataRow row = dt.NewRow();
row["FamilyName"] = "Muhammad Anees";
row["Birthday"] = new DateTime(1984, 3, 4);
dt.Rows.Add(row);
return dt;
}
//------------------------------------------------------------------
//------------------------Default.aspx------------------------
<script type="text/javascript" language="javascript">
function myTable()
{
_Default.MyDataTable(MyDataTable_callback);
}
function MyDataTable_callback(response)
{
alert(response.value);
}
</script>
I am just alerting even then it has the following error and if i call
some ther method returning
int it works ok. I errors when i get DataSet or DataTable from my
Server Side Function
//------------------------------------------------------------------
//---------------------Error--------------------------------------
Ajax.Web.DataTable is not a constructor
http://localhost:2850/AjaxPro3/ajaxpro/core.ashx
Line 366
//----------------------------------------------------------------
Any one can help me
Regards
Muhammad Anees
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ajax.NET Professional" group.
To post to this group, send email to ajaxpro@googlegroups.com
To unsubscribe from this group, send email to ajaxpro-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/ajaxpro
The latest downloads of Ajax.NET Professional can be found at http://www.ajaxpro.info/
Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
The open source project is now located at
http://www.codeplex.com/Wiki/View.aspx?ProjectName=AjaxPro
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment