ErrorWebPart.RenderContents Method (HtmlTextWriter)

 

Encodes the string value of the ErrorMessage property.

Namespace:   System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)

protected internal override void RenderContents(
	HtmlTextWriter writer
)

Parameters

writer
Type: System.Web.UI.HtmlTextWriter

An HtmlTextWriter that encodes the error message.

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

.NET Framework
Available since 2.0
Return to top
Show: