server---
public string EmailValidate(String email)
{
Regex regex = new Regex(@"^([\w\.\-]+)@([\w\-]+)((\.(\w){2,3})+)$");
Match match = regex.Match(email);
if (match.Success)
return email + " Is Valid Email Address";
else
return email + " Is Invalid Email Address";
}
client-----
string email = TextBox1.Text;
ServiceReference1.WebService1SoapClient obj = new ServiceReference1.WebService1SoapClient();
string msg = obj.EmailValidate(email);
Label2.Text = msg;
All type of PHP Programs for all class
Comments
Post a Comment