1
Vote

RegexRule is not working properly

description

Hi
 
This is Prem Boyapati.
 
I am using validation framework in part of my development.
 
<font size="2">
[
 
</font>
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.

comments

premboyapati wrote Nov 20, 2009 at 5:57 AM

Please give me the solution.....