1.@using (Html.BeginForm()) {} //提交到当前页面
2.@using (Html.BeginForm(new {} )) {} //提交到当前页面,并可以传递参数
3.@using (Html.BeginForm("action","controller")) {} //提交到指定controller下的action中
4.@using (Html.BeginForm("action","controller",FormMethod.POST)) {} //提交到指定controller下的action中,并指定提交方式
5.@Html.TextBoxFor(s=>s.dd,new {@style="width:20px;"})
6.@Html.ValidationMessageFor(m => m.LoginName)//验证错误信息[Required(ErrorMessage = "密码不能为空")]
7.@Html.ValidationMessageFor(m => m.Password)
8.@Html.ValidationSummary(true)