![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
asp,MVC
文章平均质量分 75
Jos1n
这个作者很懒,什么都没留下…
展开
-
MVC传值
Controller ==> View 1.ViewBag controller: public ActionResult Index() { var students=new List{ "Zhang", "Li", "Wang" };原创 2017-10-27 22:49:50 · 345 阅读 · 0 评论 -
ASP.NET MVC数据验证准备
Model.cs添加: using System.ComponentModel.DataAnnotations; View视图层添加: 在Scripts文件夹里添加上面相应的js文件。 然后Model.cs的数据模型添加[ ]验证。原创 2017-10-13 21:36:41 · 1129 阅读 · 0 评论