clientside script'll looks like this:
function gettingDataTable()
{
MyNamespace.MyClass.GetDataTable(username, otherparameter,
_doDataTablecallback)
}
function _doDataTablecallback(res)
{
var table = res.value;
// some work with a table
}
server side code like this:
[AjaxMethod]
public DataTable GetDataTable(string username, int number)
{
// selecting data table from sql server
return table; // where table - selected table
}
Is this all you need?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ajax.NET Professional" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
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
-~----------~----~----~----~------~----~------~--~---