This documentation is archived and is not being maintained.

ErrorWebPart::EndLoadPersonalization Method

Sets several important properties on the ErrorWebPart control prior to rendering, to prevent users from being able to personalize the control.

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

protected:
virtual void EndLoadPersonalization()

The EndLoadPersonalization method sets properties on an ErrorWebPart control before it is rendered. These properties prevent users from hiding, minimizing, editing, or exporting the control, or changing its ChromeState value. However, users can close or delete an ErrorWebPart control instance.

Notes to Inheritors:

This method can be overridden in an inherited ErrorWebPart control. Developers might want to override the method to set additional properties on the control, such as a default ErrorMessage property value.

To require the WebPartManager control to use a custom ErrorWebPart control, you must also inherit from the WebPartManager class and override its CreateErrorWebPart method. In that method, you should assign the value of the method's errorMessage parameter to the ErrorMessage property of your custom ErrorWebPart control, because the WebPartManager control calls this method from several other places, and usually passes in a specific error message.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: