public ActionResult Index(string paperId)
{
if (base.CurrentLoginUser != null)
{
ViewData["papaerID"] = Request.QueryString["paperID"].ToString();
IList<Albums> albumsList = this.getAlbumsList();
ShowHistoryPhotos(albumsList[0].AlbumID.ToString(), DateTime.Now.ToString("yyyy-MM-dd"));
}
return View();
}
public ActionResult GethistoryPhotosListByDate()
{
string[] paramsSplitStep1 = Request.RawUrl.Split(new char[1] { '/' });
string[] paramsSplitStep2 = paramsSplitStep1[paramsSplitStep1.Length - 1].Split(new char[1] { ',' });
string shortdate = paramsSplitStep2[0];
ViewData["papaerID"] = paramsSplitStep2[1];
ShowHistoryPhotos(this.getAlbumsList()[0].AlbumID.ToString(), shortdate);
//return View("Index"); <-这行代码不会执行Action"Index",只走view的html代码
return RedirectToAction("Index", "ImageProcess", new { paperId = paramsSplitStep2[1] }); // 将paperId 传至 IndexAction的paperId参数
}
1326

被折叠的 条评论
为什么被折叠?



