0
我在做服務器端升級。我想在toster中顯示錯誤信息。現在能夠顯示狀態碼。但是,我也必須顯示錯誤消息,顯示錯誤消息
return Request.CreateErrorResponse(HttpStatusCode.BadRequest, "please enter the name");
我阿賈克斯就像下面
statusCode: {
201
toastr.success('Added Successfully');
}
}
}).fail(
function (xhr, textStatus, err) {
toastr.error(err);
});
在烤麪包機它顯示錯誤的請求,但我想dispaly消息(「請輸入名字「)也。我試了下面的link.bt nt爲我工作。 http://forums.asp.net/t/1781489.aspx