摘要:
原理: 引用model(@model modelName)的画面,提交到后台的model对象,属性与前台post标签name属性对应来获取值。前台:@model myModel@using(Html.BeginForm()){ }后台方法:[HtmlPost]public ActionResult Test(UserModel user){ //user.userName id 为xxx的输入框值 【userName相对应】 return @Url.RedirectToAction('ActionName','RotueName');}实现:model :pub 阅读全文
posted @ 2014-03-06 22:51
李子康
阅读(258)
评论(0)
推荐(0)

浙公网安备 33010602011771号