下面通过HtmlHelper帮助类,创建文本框. 首先新建一个实体类,做为下面的例子: using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace MVCRestartlearnning.Models { public class Student { /// <summary> /// 学号 /// </summary> public int Stude…
<!DOCTYPE html> <html> <head> <meta charset="{CHARSET}"> <title></title> </head> <script type="text/javascript" /> function chkForm(this) { var value = thist.d1.value; var len = value.len…