Checking for blank fields, etc should definetly be done on the client side. Here is an example Javascript validation routine:
function valToFormulator() {
// alert(document.getElementById('<%=tbxCustomerID.ClientID%>').value);
if ((document.getElementById('<%=tbxCustomerID.ClientID%>').value == "") ||
(document.getElementById('<%=tbxContactID.ClientID%>').value == "")) {
alert("You must select a contact before sending to the flavor chemist.");
return false;
}
else
return true;
}
On the ASP.NET button, I have the following attribute: OnClientClick="return valToFormulator();" If the validation routine returns a "false", then the PostBack does not occur and the validation routine displays the Popup alert box with the error message. Have your programmer try it out on a simple field validation where a field cannot be blank. You will be much happier with the performance. :thumbsup: