JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Using the ValidationSummary Class

As discussed in the In Depth section of this chapter, you can use validation summary controls to display a summary of all validation errors on a Web page, in a message box, or both. This control is supported by the ValidationSummary class; here is the inheritance hierarchy of this class:

Object
   Control
      WebControl
         ValidationSummary

You can find the notable public properties of ValidationSummary objects in Table 18.11. (This class has no non-inherited methods or events.) Note that as with other Web server controls, I am not listing the notable properties, methods, and events this class inherits from the Control and WebControl classes—you can find them in Chapter 15, Tables 15.1 to 15.5.

Table 18.11: Noteworthy public properties of ValidationSummary objects.

Property

Means

DisplayMode

Gets/sets the summary's display mode.

EnableClientScript

Gets/sets whether validation should be attempted in the browser.

HeaderText

Gets/sets the text displayed at the top of the summary.

ShowMessageBox

Gets/sets whether a message box displays the validation summary.

ShowSummary

Gets/sets whether the summary is displayed in the Web page.

Previous Section Next Section




JavaScript Editor Free JavaScript Editor     JavaScript Editor