System.Web.UI.WebControls.CreateUserWizard.ErrorMessageStyle Property

Gets a reference to a collection of style properties that define the appearance of error messages.

Syntax

public TableItemStyle ErrorMessageStyle { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the CreateUserWizard.ErrorMessageStyle property to change the appearance of error messages that are displayed when the membership provider fails to create a new user account. By default, the CreateUserWizard.ErrorMessageStyle is set to display the following messages in red:

The CreateUserWizard.ErrorMessageStyle property is read-only; however, you can set the properties of the System.Web.UI.WebControls.TableItemStyle object it returns. You can set these properties declaratively in the form Property-Subproperty, where Subproperty represents a property of the System.Web.UI.WebControls.TableItemStyle class (for example, ErrorMessageStyle-ForeColor). You can set the property programmatically in the form Property.Subproperty (for example, ErrorMessageStyle.ForeColor).

Common settings include custom background color, text color, and font properties. The style settings for the CreateUserWizard.ErrorMessageStyle property are merged with the style settings for the System.Web.UI.WebControls.CreateUserWizard control. Any settings that are applied in the CreateUserWizard.ErrorMessageStyle property override the corresponding settings in the properties of the System.Web.UI.WebControls.CreateUserWizard control.

The following System.Web.UI.WebControls.CreateUserWizard style properties are overridden by CreateUserWizard.ErrorMessageStyle settings:

However, when you use templates to define the appearance of the System.Web.UI.WebControls.CreateUserWizard control, the CreateUserWizard.ErrorMessageStyle property has no effect.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0