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.He is a published author on several subjects including XML, the migration from Visual Basic 6 to VB. In this scenario, if an error occurs while performing validation on the user's computer, the application can directly display the error message on the page that the user is viewing without the page making a round trip to the Web server and then back to the user. NET, data validation was performed through scripts using either Java Script or VBScript.If you choose to support validation on the user's computer, performance will increase slightly.However, to reiterate, validation will always be performed on the Web server in order to offer validation to Web browsers that do not support the client-side scripting as well as protect against the possibility of modified validation scripts.Shannon Horn is the co-founder and chief software architect of Web Geniuses Corporation ( Hence, many times validation was not performed in a uniform manner, complex validation was difficult to implement, and Web servers were vulnerable to validation scripts being modified by malicious users.He is a Microsoft Certified Application Developer (MCAD), Microsoft Certified Solution Developer (MCSD) and a Microsoft Certified Trainer (MCT) who has been developing Microsoft Windows and Web-based solutions as well as training for over 12 years. Shannon lives in Glendale, AZ, and is married with two daughters and a son. Validating the information entered by users is an essential part of developing a professional Web-based user interface.
I used the Control To Validate attribute to link Required Field Validator to the textbox.The data validation controls are shown in Figure 1 as they appear in the Visual Studio . To use it, you link the Required Field Validator control to another control, such as a textbox, and use it to determine if the linked control has a value entered into it or it is empty.If the linked control has a value entered into it, data validation will succeed.Alternatively, if the linked control is empty, data validation will fail.You'll mostly use Required Field Validator controls in conjunction with textbox controls.The Run At="Server" attribute is required for all ASP. The Display attribute determines how space is reserved to display the validation control message if data validation fails. NET will allocate the space on the page when the page is rendered. Other possible values for the Display attribute are Dynamic and None. NET validation controls uses a script library called Web and implements Microsoft JScript functionality that is only supported by Microsoft Internet Explorer 4.0 and later versions.