Szerkesztés

Megosztás a következőn keresztül:


ErrorWebPart.RenderContents(HtmlTextWriter) Method

Definition

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