It may be too late, but I would recommend avoiding a call to an ASPX
page like that.  Even though you're not using it, the entire ASP.NET
WebForms Page class is instantiated for any call to an ASPX page,
which has significant overhead.

An ASMX web service or ASHX handler would be much better choices.

If you have ASP.NET AJAX installed on 2.0 or are using 3.5+, ASMX
services even automate the JSON (de)serialization process.

See this post for a basic example of that:
http://encosia.com/2008/03/27/using-jquery-to-consume-aspnet-json-web-services/

And a more complex example:
http://encosia.com/2009/04/07/using-complex-types-to-make-calling-services-less-complex/

On Aug 10, 6:41 pm, yi <falconh...@gmail.com> wrote:
> $.ajax({
>
>                                         type: "POST",
>
>                                         url: "mywebpage.aspx?
> Arg="+args2,
>
>                                         contentType: "text",
>
>                                         data:"{}",
>
>                                         dataType: "text",
>
>                                         success: CompleteInsert,
>
>                                         error: onFail
>
>                                 });
>
> I dont know why the onFail function is going to be executed when args2
> is too big.
> args2 is a string type
> can anyone explain this
> thanks

Reply via email to