how to validate the textbox data is in emailformat or not using errorprovider1 control
give me code to validate the validate expression using errorprovider control and tellme about the blinking property of the error provider
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sushta GuthnarPosted Mar 26, 2010, 11:04 AM
Can someoneconvincing that I am whole function?
function isEmail(argvalue) {
if (argvalue.indexOf(" ") != -1)
return false;
else if (argvalue.indexOf("@") == -1)
return false;
else if (argvalue.indexOf("@") == 0)
return false;
else if (argvalue.indexOf("@") == (argvalue.length-1))
return false;
// arrayString = argvalue.split("@"); (works only in netscape3 and above.)
var retSize = customSplit(argvalue, "@", "arrayString");
if (arrayString[1].indexOf(".") == -1)
return false;
else if (arrayString[1].indexOf(".") == 0)
return false;
else if (arrayString[1].charAt(arrayString[1].length-1) == ".") {
return false;
}
return true;
}
Please be marking correct answer and follower\
Sushta doing needful