关于ASP.NET MVC3 2个ACTION 传递数据输出图片的问题
请教 如何把ShowPicture计算出来的ss传递到CreatePicture中
部分代码 及 执行流程如下
public ActionResult ShowPicture()
{
string[] ss = new {"1","2","3","4"};
return View()
}
ShowPicture.cshtml
<img src="CreatePicture"></img>
public ActionResult CreatePicture()
{
string[] ss = new {"1","2","3","4"};
return View()
}
CreatePicture.cshtml
@{
Chart......
}
思路应该是
1 ShowPicture 传递 ShowPicture.cshtml
2 ShowPicture.cshtml 如何传递到 CreatePicture
3 CreatePicture 传递
@{
Chart......
}
思路应该是
1 ShowPicture 传递 ShowPicture.cshtml (ViewData)
2 ShowPicture.cshtml 如何传递到 CreatePicture 怎么办
3 CreatePicture 传递 CreatePicture.cshtml (ViewData)
只有45分了 悲剧
------解决方案--------------------
<img src="CreatePicture/参数"></img>
public ActionResult CreatePicture(id){}