Assembly: System.Web (in system.web.dll)
ProxyWebPart is the base class for a set of Web Parts controls, such as UnauthorizedWebPart and ErrorWebPart, that can be used as placeholders for other Web Parts controls on a page. Typically, a ProxyWebPart control will replace another Web Parts control when some type of error or failure has occurred. For example, when a user is not authorized to view a Web Parts control on a page, the intended Web Parts control is replaced with the UnauthorizedWebPart control. When a Web Parts control cannot be loaded or a new instance of it cannot be created, the original Web Parts control is replaced with the ErrorWebPart control. If the intended Web Parts control later becomes available to the user, it will be restored to the page and the object derived from the ProxyWebPart class will be removed.
The ProxyWebPart class does not save view state or control state. If a Web Parts control is replaced by a ProxyWebPart object and then later becomes available, its view state and control state will be empty.
The ProxyWebPart object preserves personalization data for the Web Parts control that it replaced. If the original Web Parts control becomes available, its personalization data will be restored.
When the WebPartManager control saves personalization data, it does not save the properties of a ProxyWebPart object. Instead, it saves the properties of the control that the ProxyWebPart object replaced. If the original Web Parts control becomes available, the WebPartManager control will automatically load it.
If a ProxyWebPart object replaces a Web Parts control that is either the provider or consumer of a Web Parts connection, the connection is not activated but will not be deleted. If the original Web Parts control becomes available, the connection will be reactivated.
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.