如何在m.v.c中逐步给出valadtion 4一步一步看 [英] how to give valadtion in m.v.c 4 step by step see

查看:91
本文介绍了如何在m.v.c中逐步给出valadtion 4一步一步看的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请逐步提供信息

{





public string fname {get;组; }

公共字符串地址{get;组; }

公共字符串电子邮件{get;组; }

public DateTime dob {get;组; }

公共小数工资{get;组; }

}

please give information step by step
{


public string fname { get; set; }
public string address { get; set; }
public string email { get; set; }
public DateTime dob{ get; set; }
public decimal salary { get; set; }
}

推荐答案

浏览以下链接..



http:// www。 asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/adding-validation-to-the-model [ ^ ]

ASP.NET MVC中的模型验证 [< a href =http://www.codeproject.com/Articles/422573/Model-Validation-in-ASP-NET-MVC\"target =_ blanktitle =New Window> ^ ]





谢谢,

-RG
Go through the below links..

http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/adding-validation-to-the-model[^]
Model Validation in ASP.NET MVC[^]


Thanks,
-RG


这篇关于如何在m.v.c中逐步给出valadtion 4一步一步看的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆