Otter SDK Reference
Version:

SimpleInput Class

An input element designed to replace ValidatingTextBox.

Inheritance Hierarchy

Syntax

public class SimpleInput : Element, 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, IMandatoryClientIdPolicyContainer, ISimpleControl, ISimpleControlContainer, ISimpleClientResourceConsumer, ISimplePostControl, ISimpleValidationExpression, ISimpleValidator, System.Web.UI.IPostBackDataHandler, ISimpleEventProcesser

Constructors

Name Description
SimpleInput

Initializes a new instance of the SimpleInput class.

Properties

Name Description
AllowBrowserAutoComplete

Gets or sets a value indicating whether to allow browsers to autocomplete this field.

AutoCompleteValues

Gets or sets auto-complete values for the textbox.

DefaultText

Gets or sets the default text.

FieldName

Gets or sets the name of the field used in validation messages

GetAutoCompleteValues

Gets or sets a handler that will get the auto-complete values via Ajax.

MaxLength

Gets or sets the maximum length attribute.

Pattern

Gets or sets the regex used to validate.

Required

Gets or sets a value indicating whether a value is required.

ServerValidate

Gets or sets the server validate.

ServerValidateIfNullOrEmpty

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

Type

Gets or sets the type.

ValidatorText

Gets or sets a custom validation error message.

Value

Gets or sets the value.

Methods

Name Description
CreateControlCollection

Creates the control collection.

GetClientResources

Gets the client resources.

Initialize

Initializes the control.

PostWriteOrRender(SlimHtmlTextWriter writer)

Posts the render.

Render(System.Web.UI.HtmlTextWriter writer)

Sends server control content to a provided System.Web.UI.HtmlTextWriter object, which writes the content to be rendered on the client.

WriteHtml(SlimHtmlTextWriter writer)

Writes the HTML.