ErrorWebPart.RenderContents(HtmlTextWriter) Method

Definition

Encodes the string value of the ErrorMessage property.

C#
protected internal override void RenderContents(System.Web.UI.HtmlTextWriter writer);

Parameters

writer
HtmlTextWriter

An HtmlTextWriter that encodes the error message.

Remarks

The RenderContents method encodes the string assigned to the ErrorMessage property to ensure that it renders properly, and to protect against script injection attacks.

Applies to

Proizvod Verzije
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also