System.Text.RegularExpressions.Regex r = new System.Text.RegularExpressions.Regex("^([0-9]*)$");
Eg:
if (!(r.Match(broker.PhoneNumber).Success))
broker.Messages.Add("Phone number is invalid");
Friday, October 8, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment