ErrorWebPart.RenderContents(HtmlTextWriter) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Encodes the string value of the ErrorMessage property.
protected public:
override void RenderContents(System::Web::UI::HtmlTextWriter ^ writer);
protected internal override void RenderContents (System.Web.UI.HtmlTextWriter writer);
override this.RenderContents : System.Web.UI.HtmlTextWriter -> unit
Protected Friend Overrides Sub RenderContents (writer As HtmlTextWriter)
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
See also
Werk met ons samen op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en bekijken. Raadpleeg onze gids voor inzenders voor meer informatie.