I've never understood: What determines whether the success
or error
function of
$.ajax( { ...,
success : function ( retobj ) { ... },
error : function ( retobj ) { ... },
...
} );
is called? Can my controller directly control which is called? I know it'll be called if my controller does something stupid, but can I force it to be called like
$.ajax( { ...,
url : 'MyController/CallSuccess',
success : function ( retobj ) { /* this will invetiably be called */},
error : function ( retobj ) { ... },
...
} );
public ActionResult CallSuccess ( void )
{
// ...
}