RegexRule attribute is not working properly.

Topics: Developer Forum, Project Management Forum, User Forum
Nov 10, 2009 at 11:25 AM


This is Prem Boyapati.

I am using validation framework in part of my development.

<font size="2">



RegexRule(@"[^a-zA-Z]", ErrorMessage = "Password will support alphabets only.")]

public string Password { get; set; }

Issue: It is raising error message in both cases (positive and negitive)

Please help me in sorting out this issue.

It i get solution for this .......I will save almost 40 % time in writing validations.

Thanks in advance.