How to validate Multiple Ids in the Webservice Method
hai Friends
I am using this coding for validating the emailID online through webservice method.i will get a input a from a textboa and the click the button.but it is validating the emailId only one at a time.how to vaildate multiple EmaiIDs and validate and return the values.or how to split the ids and validate let me know.
The webservice link is http://www.webservicex.net/ValidateEmail.asmx?wsdl
So far my coding is
protected void ValidateEmail_Click(object sender, EventArgs e)
{
ValidateEmail.ValidateEmailSoapClient EmailClient = new ValidateEmail.ValidateEmailSoapClient("ValidateEmailSoap开发者_开发技巧12");
bool bval = System.Convert.ToBoolean(EmailClient.IsValidEmail(txtvalidateEmail.Text));
Response.Write("Email Address is " + bval.ToString());
}
The link you've posted doesn't open here but I will try to answer your question. If the web service has another method that allows you to pass multiple email addresses then you can use this method. If not, you will need to call the web service for each email you are trying to validate which of course might not be very efficient.
精彩评论