I am not sure what you are trying to do in case 1.  In case 2, the cause is
because iis doesn't serve ascx files.  Browse to
http:://website/wucPeopleList.ascx.  What you see if the same thing jquery
sees when you try to post to it.  

It is my understanding you can continue to use AJAXpro on the serverside,
and use jquery to make the requests.


anandp wrote:
> 
> I've been trying to use jquery AJAX with .NET and noticed the following
> limitation. 
> 
> 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){ 
>                      }
>                  );      
>                }    
>            );
> 
> Regards,
> Anand
> 

-- 
View this message in context: 
http://www.nabble.com/JQuery-AJAX-with-.NET---Limitations-tf4569252s27240.html#a13047980
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to