Rabu, 28 Juli 2010
ASP.NET MVC: Adding client-side validation to ValidatePasswordLengthAttribute
When you create a new ASP.NET MVC 2 project in Visual Studio there are a number of files that are created. One of these is AccountModel.cs. If we ignore the fact that this one file contains multiple classes (I’ve no idea why!), we will see that there is some nice example code lurking in there. One such piece of code is the ValidatePasswordLengthAttribute. This attribute can be applied to your
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar