ErrorWebPart::RenderContents Method (HtmlTextWriter^)
.NET Framework (current version)
Encodes the string value of the ErrorMessage property.
Assembly: System.Web (in System.Web.dll)
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
Available since 2.0
Show: