<script language="javascript" type="text/javascript"> function ValidateForm() { if (document.getElementById("<%=txtSuppName.ClientID%>").value == null) { alert("Supplier Name can not be Empty!"); document.getElementById("<%=txtSuppName.ClientID%>").focus(); return false; } return true; } </script>
OnClientClick="return ValidateForm();"
John Bhatt Glad to Know, Free to Share..... http://www.johnbhatt.com
Login to post response