MVC @using Html.BeginForm 传递多个参数的问题
@using(Html.BeginForm("Audit","News",FormMethod.Get,new{id="search"})){<divclass="for...
@using (Html.BeginForm("Audit","News",FormMethod.Get, new { id = "search" }))
{
<div class="form grop">
<div class="col-sm-2"></div>
<div class="col-sm-2">
<button type="submit" class="btn">拒绝<i class="icon-search"></i></button>
</div>
<div class="col-sm-5">
@Html.TextBox("Title","", new { @class = "form-control input-medium" })
</div>
</div>
}上面一段是我自己写的form表单,后台方法为:
public ActionResult Audit(Guid id, AuditStatus status, string comments)
{
this.WeiLinService.AuditNewsList(id, status);
return this.RefreshParent();
},那么请问后台方法需要的三个参数我要怎么写在前台的方法里面?写到那里?多个参数中间用什么隔开? 展开
{
<div class="form grop">
<div class="col-sm-2"></div>
<div class="col-sm-2">
<button type="submit" class="btn">拒绝<i class="icon-search"></i></button>
</div>
<div class="col-sm-5">
@Html.TextBox("Title","", new { @class = "form-control input-medium" })
</div>
</div>
}上面一段是我自己写的form表单,后台方法为:
public ActionResult Audit(Guid id, AuditStatus status, string comments)
{
this.WeiLinService.AuditNewsList(id, status);
return this.RefreshParent();
},那么请问后台方法需要的三个参数我要怎么写在前台的方法里面?写到那里?多个参数中间用什么隔开? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询