Thursday, 13 December 2012

validation of Mobile Number

public  boolean validatePhoneNumber(MobileNo    _mobileNo)
{

Str MatchEmailPattern = @"[0-9]";
System.Text.RegularExpressions.Match myMatch;
myMatch = System.Text.RegularExpressions.Regex::Match(_mobileNo,MatchEmailPattern);
return myMatch.get_Success();
}

No comments:

Post a Comment