Because the code is stored within the page or within a linked file, it is downloaded into the browser when a user accesses the page and, therefore, doesn't require a roundtrip to the server.
For this reason, client form validation can be faster than server-side validation.
However, client-side validation may not work in all instances.
A user may have a browser that doesn't support client-side scripting or may have scripting disabled in the browser.
Server-side validation incorporates code validation into a form handler. NET application on the server that provides the functionality that your form needs for processing after a customer has submitted it.
Because the code is stored on the server, server-side validation requires a roundtrip to the server.
(16 printed pages) Introduction Getting Started Writing the Validation Script Connecting the Form to the Script Associating Form Fields with Custom Script Code Listing Conclusion When you create forms, providing form validation is useful to ensure that your customers enter valid and complete data.
Otherwise, you may want to review JScript Run-Time and Syntax errors.In addition, each of the fields should have a unique name.Use the following table to assign names to all of your form elements.You need a custom function that you can later connect to the form.For more information about creating a function, see JScript Functions.