I'm looking at doing the validation for the email in javascript since we have asp.net 1.1. I can get it to just alert fine, but once I add the return validation it doesn't fire.
Me.ImageButton2.Attributes.Add("onclick", "return validation(this);")
<script language="JavaScript">
<!--
function validation ()
{
var test="";
test = document.ticketForm.emailAddress.value;
if (test == "xyz")
{
alert(test);
return false; // validation failed
}
-->
</script>
View Complete Post