Hi
Can someone help me. i am developing an asp.net web project and kind of user go to the site and send out messages to other friends (10 friends is max)
So on the site I have a textbox and I only want allow the user to enter their friends email up to 10 emails separate by comma. This is what the user input in the textbox, example: [B]
My goal are
Onclient side (This where I need javascript help)
1 – no more than 10 email
2 – validate all emails are valid format
Once the client side is passed then I do another server validation by capture all the emails input and split(comma) and put it into an array and call the function below and pass in each of the email for validation
public static bool IsValidEmail(string strEmail)
{
Regex objNotWholePattern = new Regex(@”^([a-zA-Z0-9_–.[...–.]
return objNotWholePattern.IsMatch(strTextEntry);
}