IValidation

Wisej.Web.IValidation

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.2.0.0)

Provides access to the validation events and properties property for controls that support validation.

public interface IValidation

Using IValidation allows developers to use uniform code to access the validation-related properties and events used by the control.


// Old code
if (control is TextBox)
((TextBox)control).InvalidMessage = "Required";
else if (control is ComboBox)
((ComboBox)control).InvalidMessage = "Required";
// etc...

// New code
if (control is IValidation)
((IValidation)control).InvalidMessage = "Required";

Properties

String: Returns or sets the invalid message that is shown in the invalid tooltip.

Events

EventHandler Fired when the control is finished validating.

CancelEventHandler Fired when the control is validating.

Implemented By

Last updated