There is a limit on url length depending on the browser. http://classicasp.aspfaq.com/forms/what-is-the-limit-on-querystring/get/url-parameters.html
use type:"POST" and data: instead and do not enclose the object declaration data:{Arg:args2} instead of data:"{Arg:args2}" On Aug 11, 8:41 am, 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