首页 新闻 会员 周边

关于mvc3 post提交数据获取 问题

0
悬赏园豆:50 [已关闭问题] 关闭于 2013-06-06 10:41

1.页面中

@using (Html.BeginForm( ))
{
@Html.ValidationSummary(true)

<tr>

备注说明:
@Html.TextAreaFor(model => model.Remark, new { style = "height:100px;width:300px" })

</tr>

<tr>
验证码:
<input type="text" id="txtyzm" class="regbox"/>

}

2 control中 

[HttpPostAttribute]
public ActionResult Register(  实体名  fc)
{

 

string remark=fc.remark;  //可以获取成功

string yzm=request.Form["txtyzm"]     //  获取不到 

}

当 参数为 FormCollection  时也获取不到验证码 

求 怎样获取到验证码  

.L的主页 .L | 菜鸟二级 | 园豆:205
提问于:2013-06-06 10:34
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册