Validating Input Controls

Now let’s look at the specific ASP.NET Web server control validators. Remember that these controls all reside in the System.Web.UI.WebControls namespace and they inherit the WebControl base class.

They also have another class called BaseValidator from which they inherit. This class has properties and methods that are common to all validator controls (see Table 8.1).

Note

Remember—and it’s worth repeating—that inheritance isn’t a big word to be afraid of. It’s easily understandable. If one object class inherits from another, it gets all of its properties and methods from that class. Each inherited object is a building block that brings its pieces to the receiving object. All methods and properties within an object have ...

Get ASP.NET for Web Designers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.