Validating web form
12-Dec-2019 21:07
This increases performance and reduces traffic over the Web.A slightly negative aspect of validating data on the user's computer is that the validation is performed via a script residing in the Web page. You only have two possible scripting languages that you can use on a user's computer: VBScript or Java Script.In the walkthrough, you will create a page for a Web site that allows visitors to request a reservation.Because the purpose of the walkthrough is to illustrate validation, the nature of the reservation is not important (for example, if could be for a restaurant, a community center meeting room, or something else), and the page does not actually process the reservation.Real-time inline validation can help people complete web forms more quickly and with less effort, fewer errors, and (surprise! Inline validation gives people several types of real-time feedback: It can confirm an appropriate answer, suggest valid answers, and provide regular updates to help people stay within necessary limits.
Web forms that use a basic submit-and-refresh model of interactivity don’t respond until you hit the “submit” button—but it doesn’t have to be this way.
An important aspect of creating Web Forms pages for user input is to be able to check that the information users enter is valid. NET provides a set of validation controls that provide an easy-to-use but powerful way to check for errors and, if necessary, display messages to the user.
The following topics tell you more about validation controls and how to use them.
Server side validation is performed by a web server, after input has been sent to the server.
Client side validation is performed by a web browser, before input is sent to a web server. They ask a bunch of questions, then wait until you answer them all before they respond.