![]() The validation controls automatically detect whether validation should be performed on the client side or the server side.Ī client-side validation catches errors before a postback operation is complete.You can specify programmatically whether validation should occur, which is useful if you want to provide a cancel button so that the user can exit without having to fill valid data in all of the fields.The validation is performed when the page form is submitted.You can associate one or more validation controls with each control that you want to validate.Validation controls offer the following advantages: Validation controls perform client-side validation, server-side validation, or both, depending on the capabilities of the browser in which the page is displayed. ![]() Validation controls are used to validate the values that are entered into other controls of the page. However, basic Web controls include additional methods, events, and properties against which you can program.įor more information about individual Web controls that are available in ASP.NET, see the following Web sites: ![]() Web server controls can be divided into four categories:īasic Web controls provide the same functionality as their HTML server control counterparts. To use a Web server control, use the following syntax (which uses the TextBox control as an example): Most of the Web server controls derive from this class. The .WebControls.WebControl base class contains all of the common properties.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |