日期:2014-05-18  浏览次数:20416 次

asp.net mvc Html.RenderAction
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"})