读书人

asp.net mvc Html.RenderAction解决

发布时间: 2012-03-21 13:33:14 作者: rapoo

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"})

读书人网 >asp.net

热点推荐