有没有办法在我的jQueryAJAX错误消息中将自定义异常消息显示为警报?例如,如果我想通过throw new ApplicationException("User name already exists");的在服务器端抛出一个异常,我想在jQueryAJAX错误消息中捕捉到这条消息jQuery("#save").cl
我将应用程序上传到服务器,当我打开web页面时,会收到jquery对webservice的调用的警报,该调用将从框架实体返回查询结果。异常sais:An error occurred while executing the command definition.问题是,我不知道如何获得内部异常,因为它没有到达服务器。我怎么知道出什么事了?更新$.ajax({
我正在使用下面的web方法来获取驱动程序的数据,但是我的问题是。我的问题是,当您返回json来处理错误(如果找不到数据)是它们的特定错误代码时,最好的方法是什么,如page not send no is 404,我应该在我的webmethod中发回它。[ScriptMethod(UseHttpGet = true, ResponseFormat = ResponseFormat.Json)] {
motorista _wsmoristita =