tags:

views:

5

answers:

0

Hai Feriends

I am using this coding for validating multiple email id on online using webservice this working fine :

protected void ValidateEmail_Click(object sender, EventArgs e)

{

ValidateEmail.ValidateEmailSoapClient EmailClient = new ValidateEmail.ValidateEmailSoapClient("ValidateEmailSoap12");

// bool bval = System.Convert.ToBoolean(EmailClient.IsValidEmail(txtvalidateEmail.Text));

//Response.Write("Email Address is " + bval.ToString());

string strEMails = txtvalidateEmail.Text.TrimEnd(',');

foreach (string strEmail in strEMails.Split(','))

{

bool bval = System.Convert.ToBoolean(EmailClient.IsValidEmail(strEmail));

Response.Write("Email Address is " + bval.ToString());

}

}

but the output like this


Email Address is FalseEmail Address is True


i want a output like this :

Email ID you entered this [email protected] is Invalid

Email ID you entered this [email protected] is Valid