0
我要調用的操作方法(DownloadPictures)後,我重定向到一個不同的頁面,所以我使用刷新頭ASP.NET MVC刷新頭問題
UrlHelper url = new UrlHelper(Request.RequestContext);
Response.AddHeader("REFRESH" , "1;URL=" + url.Action("DownloadPictures" , "Cart" , new { isFree = true }));
return Redirect(returnUrl != null ? returnUrl : url.Action("Index", "Home"));
而且我下載的圖片的方法看起來是這個樣子一個斷點設置在第一行,但這種方法永遠不會被稱爲
public ActionResult DownloadPictures (bool? isFree) {
Cart cart = (Cart)HttpContext.Session["_cart"];
....
//The Download Picture Method returns a File (a zip file)
}
任何幫助,將不勝感激。由於