BuildMaster SDK Reference
Version:

ValidatingTextBox Class

A text box control with extra options for validation.

Inheritance Hierarchy

Syntax

public class ValidatingTextBox : System.Web.UI.WebControls.TextBox, System.ComponentModel.IComponent, System.IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IUrlResolutionService, System.Web.UI.IDataBindingsAccessor, System.Web.UI.IControlBuilderAccessor, System.Web.UI.IControlDesignerAccessor, System.Web.UI.IExpressionsAccessor, System.Web.UI.IAttributeAccessor, System.Web.UI.IPostBackDataHandler, System.Web.UI.IEditableTextControl, System.Web.UI.ITextControl, ISimpleValidationExpression, ISimpleValidator, IMandatoryClientIdPolicyContainer, ISimplePostControl, ISimpleControl, ISimpleClientResourceConsumer

Constructors

Name Description
ValidatingTextBox

Initializes a new instance of the ValidatingTextBox class.

Events

Name Description
ServerValidate

When set, attaches a StyledCustomValidator with the event.

Properties

Name Description
AutoCompleteValues

Gets or sets auto-complete values for the textbox.

DefaultText

Gets or sets the default text.

Required

Gets or sets whether the textbox is required.

ServerValidateIfNullOrEmpty

Gets or sets a value indicating whether [server validate if null (Nothing in Visual Basic) or empty].

Type

Gets or sets the textbox's System.Web.UI.WebControls.ValidationDataType.

ValidationExpression

Gets or sets whether the textbox has a validation expression.

ValidatorDisplay

Gets or sets the display of the validators that are created.

ValidatorText

Gets or sets the text of the validators that are created.

Methods

Name Description
AddAttributesToRender(System.Web.UI.HtmlTextWriter writer)
CreateChildControls

Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.

CreateValidator<TValidator>

Returns a new validator.

GetClientResources
OnInit(System.EventArgs e)
OnPreRender(System.EventArgs e)
PostRender(SlimHtmlTextWriter writer)

Posts the render.

Render(System.Web.UI.HtmlTextWriter writer)
SetValidatorDefaultProperties<TValidator>(System.Action<TValidator> setValidatorPropertiesDelegate)

Sets the default properties.

WriteHtml(SlimHtmlTextWriter writer)