MVC提交时验证

第一种

@using (Html.BeginForm("ProdPromotionEdit", "Product", FormMethod.Post, new { onsubmit = "return check()" }))

第二种

<input onsubmit="return check() " type="submit">

第三种jquery

$("#xxxform").submit(function() { return true or false });

 

 

posted on 2014-06-15 20:17  harrell  阅读(262)  评论(0编辑  收藏  举报