As I already shown in my previous article Form validation with ASP.NET MVC. In this article, I will explore an alternative method of implementing validation logic. I will show you how to perform validation by using the IErrorDataInfo interface.public interface IDataErrorInfo{ // Properties string Error { get; } string this[string columnName] { get; }} We will modifylast articlethat will implementIErrorDataInfo Interface. To implement the IDataErrorInfo interface, we must create a partial class....
|
2
fairs |
|
|||
No comments yet, be the first one to post comment.