MVC 页面传参到另一个页面
2013-08-31 09:38 jiangys 阅读(1575) 评论(0) 编辑 收藏 举报写法一:
@{ViewData["partData"]="哇哈哈哈哈";}
@{Html.RenderPartial("~/Views/Home/PartTargetView.cshtml");}
写法二:
Html.RenderPartial("PartTimeJob", Model);
写法一:
@{ViewData["partData"]="哇哈哈哈哈";}
@{Html.RenderPartial("~/Views/Home/PartTargetView.cshtml");}
写法二:
Html.RenderPartial("PartTimeJob", Model);