HomeController :
public ActionResult index(string s)
{
srting value = s;
return view();
}
Another View:
如何通过 Html.RenderAction传入一个参数给 Index
通常情况下Html.RenderAction("Index","Home") 这样用
------解决方案--------------------------------------------------------
Html.RenderAction("Index","Home",new{s="abc"})