BaseValidatorDesigner Class
Assembly: System.Design (in system.design.dll)
In a visual designer, when you switch from Source to Design view, the markup source code that describes a control that is derived from the BaseValidator abstract class is parsed and a design-time version of the control is created on the design surface. When you switch back to Source view, the design-time control is persisted to markup source code and edited into the markup for the Web page. The BaseValidatorDesigner objects provide design-time support for controls that are derived from the BaseValidator class in a visual designer.
The GetDesignTimeHtml method gets the markup that is used to render the associated control at design time.
The following example derives the SimpleCompareValidator control from the CompareValidator class. SimpleCompareValidator is a copy of the CompareValidator. The example also derives the designer SimpleCompareValidatorDesigner from the BaseValidatorDesigner class and uses the DesignerAttribute attribute to associate the SimpleCompareValidatorDesigner class with the SimpleCompareValidator control.
SimpleCompareValidatorDesigner overrides the GetDesignTimeHtml method to draw a solid border around the SimpleCompareValidator control at design time if the value of the BorderStyle property of the control is the NotSet or None field.
System.ComponentModel.Design.ComponentDesigner
System.Web.UI.Design.HtmlControlDesigner
System.Web.UI.Design.ControlDesigner
System.Web.UI.Design.WebControls.PreviewControlDesigner
System.Web.UI.Design.WebControls.BaseValidatorDesigner
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.