ValidationSummary

ValidationSummarydisposable

System.Web.UI.WebControls (system.web.dll)class

The ValidationSummary control receives the error text messages from all validation controls on the Web Forms page and presents them in a single paragraph or list. This occurs automatically on post back, provided that the ShowSummary property is set to True. Alternatively (or in addition), you can set the ShowMessageBox property to True to display a message box with the summary when validation errors occur. This message box uses client-side JavaScript and will be provided only if the browser supports it and the EnableClientScript property is set to True. You can also add a title to the summary by using the HeaderText property.

public class ValidationSummary : WebControl {
// Public Constructors
   public ValidationSummary( );
// Public Instance Properties
   public ValidationSummaryDisplayMode DisplayMode{set; get; }
   public bool EnableClientScript{set; get; }
   public override Color ForeColor{set; get; }                   // overrides WebControl
   public string HeaderText{set; get; }
   public bool ShowMessageBox{set; get; }
   public bool ShowSummary{set; get; }
// Protected Instance Methods
   protected override void AddAttributesToRender(System.Web.UI.HtmlTextWriter writer);  // overrides WebControl
   protected override void OnPreRender(EventArgs e);            // overrides System.Web.UI.Control
   protected override void Render(System.Web.UI.HtmlTextWriter writer);  // overrides WebControl
}

Hierarchy

System.Object System.Web.UI.Control(System.ComponentModel.IComponent, System.IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IDataBindingsAccessor) WebControl(System.Web.UI.IAttributeAccessor) ValidationSummary



    Part I: Introduction to ASP.NET
    Part III: Namespace Reference
    Chapter 40. The System.Web.UI.MobileControls Namespace
    Chapter 42. The System.Web.UI.WebControls Namespace