/*
function validate()
{
// for check that text box is fill or empty.
if (document.getElementById("<%=txtName.ClientID%>").value=="")
{
alert("Name Feild can not be blank");
document.getElementById("<%=
return false;
}
if(document.getElementById("<%
{
alert("Email can not be blank");
document.getElementById("<%=
return false;
}
// check that email address is valid or not.
var emailPat = /^(\".*\"|[A-Za-z]\w*)@(\[\d{
var emailid=document.
var matchArray = emailid.match(emailPat);
if (matchArray == null)
{
alert("Your email address seems incorrect. Please try again.");
document.getElementById("<%=
return false;
}
if(document.getElementById("<%
{
alert("Cousrse field can not be blank");
document.getElementById("<%=
return false;
}
return true;
}
</script> */
No comments :
Post a Comment