I noticed the following problem in using jquery AJAX with .NET:
NOTE: I don't have the below problems if I use AjaxPro, just wanted to
do
the same with JQuery. Is this is possible, or should I just stick with
AjaxPro.
1) Cannot return a Datatable to the callback function
[AjaxPro.AjaxMethod()]
public System.Data.DataTable GetTestCaseById(int Id)
{
objTestCase.TestCaseCode = Id;
return
objTestCase.GetTestCaseById(objTestCase).Tables[0];
}
var ResDataTable=Bubya.TestCase.GetTestCaseById(Id).value;
if(ResDataTable!=null){
$('#testcase').value=ResDataTable.Rows[0]
["testcase_summary"];
}
2) Cannot post to a user control
$(document).ready(function() {
$.post( "wucPeopleList.ascx",
{ call_type: 'UpdateAccessRights',
user_code: UserCode
},
function(response){
}
);
}
);