Skip to main content

Data Validation Controls

  • Chapter
  • First Online:
Essential ASP.NET Web Forms Development
  • 1300 Accesses

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).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 79.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 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. 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. 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. 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. 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. 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. 7.

    We will learn about JavaScript later in this book.

  8. 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. 9.

    It can display validation errors in both as well.

  10. 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. 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

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Robert E. Beasley

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

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

Publish with us

Policies and ethics