Abstract
Data validation controls ensure that bad data does not make its way into a software system. If we allow bad data into a system, we will get bad information out of it. This reflects the age-old principle: garbage in, garbage out (GIGO). The importance of allowing only good data into a software system is that good data leads to good information, good information leads to good decision making, and good decision making leads to organizational stability (in a not-for-profit context) or competitive advantage (in a for-profit context).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
When a page with validation controls is posted back to the server, validation is performed on the server as well—even if all the validation operations pass on the client. This prevents the end user from bypassing validation by disabling script code execution in his or her browser.
- 2.
All property, method, and event descriptions were taken directly from Microsoft’s official documentation. The event handler methods used to handle the events of this class were omitted to conserve space. See the reference for all of the methods of this class.
- 3.
All property, method, and event descriptions were taken directly from Microsoft’s official documentation. The event handler methods used to handle the events of this class were omitted to conserve space. See the reference for all of the methods of this class.
- 4.
All property, method, and event descriptions were taken directly from Microsoft’s official documentation. The event handler methods used to handle the events of this class were omitted to conserve space. See the reference for all of the methods of this class.
- 5.
All property, method, and event descriptions were taken directly from Microsoft’s official documentation. The event handler methods used to handle the events of this class were omitted to conserve space. See the reference for all of the methods of this class.
- 6.
All property, method, and event descriptions were taken directly from Microsoft’s official documentation. The event handler methods used to handle the events of this class were omitted to conserve space. See the reference for all of the methods of this class.
- 7.
We will learn about JavaScript later in this book.
- 8.
All property, method, and event descriptions were taken directly from Microsoft’s official documentation. The event handler methods used to handle the events of this class were omitted to conserve space. See the reference for all of the methods of this class.
- 9.
It can display validation errors in both as well.
- 10.
All property, method, and event descriptions were taken directly from Microsoft’s official documentation. The event handler methods used to handle the events of this class were omitted to conserve space. See the reference for all of the methods of this class.
- 11.
When data is validated in the code behind (e.g., when using a CustomValidator control to perform data validation on the server), errors cannot be displayed in a message box since message boxes are displayed in the client via JavaScript. However, they can be displayed in the page itself.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2020 Robert E. Beasley
About this chapter
Cite this chapter
Beasley, R.E. (2020). Data Validation Controls . In: Essential ASP.NET Web Forms Development. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-5784-5_5
Download citation
DOI: https://doi.org/10.1007/978-1-4842-5784-5_5
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-5783-8
Online ISBN: 978-1-4842-5784-5
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)