1
我想傳遞這個查詢字符串到一些aspx文件(WebForm1.aspx)。但在這裏我無法通過它。這是MVC5應用程序。一切工作,但response.redirect不工作Response.Redirect裏面JsonResult
public JsonResult SubmitReportData(SelectedReportViewModel SubmitData)
{
Response.Redirect("~/Report/WebForm1.aspx?Id="+SubmitData.SelectedNode+"&stDate="+SubmitData.stDate+"&enDate"+SubmitData.enDate);
//return Json(new { x = 1 });
return null;
}
可以返回的路徑string和使用window.location.href = '您的路徑' 在jQuery的重定向。 – 2015-03-02 05:23:43
@sehtaumesh當我使用它,然後它顯示'名稱窗口不存在於當前上下文' – Alex 2015-03-02 05:25:14
可能重複的http://stackoverflow.com/questions/199099/how-to-manage-a-redirect- request-after-a-jquery-ajax-call – 2015-03-02 05:26:17