本文介绍了我的网站工作正常,但在一个地方显示错误如下的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Server Error in ''/'' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /Operation/null
我尝试过:
What I have tried:
$(''.save'').on(''click'', function (e) {
var tr = $(this).parents(''tr:first'');
var NewID = tr.find("#newID").html();
e.preventDefault();
if (NewID != "") {
var DataObjectForAjaxCall = { strBooking: NewID };
$.ajax({
url: "@Url.Action("invoicePrint", "Return", new { area = "Operation" })",
method: "GET",
data: DataObjectForAjaxCall,
cache: false,
async: false,
success: function (Result) {
alert(Result);
var w = window.open($(this).parent().data("url"));
$(w.document.body).html(Result);
}
});
}
else {
msgAlerts(Result);
}
});
控制器
Controller
public ActionResult invoiceShipment(string strBooking)
{
if (strBooking != "")
{
int Intid = Convert.ToInt32(strBooking) - 120000000;
BookShipmet objBS = new BookShipmet();
objBS = new BL_Operation().GetShipmentByID(Intid);
return PartialView("~/Areas/Operation/Views/Shared/Return/_invoicePrint.cshtml", objBS);
}
else
{
return RedirectToAction("Index", "TimeOutError");
}
//return View();
}
推荐答案
这篇关于我的网站工作正常,但在一个地方显示错误如下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!