This documentation is archived and is not being maintained.

WebPartManager.GetExportUrl Method

Note: This method is new in the .NET Framework version 2.0.

Gets the relative virtual path and the query string that are part of the request when a user attempts to export a WebPart control.

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

public string GetExportUrl (
	WebPart webPart
)
public String GetExportUrl (
	WebPart webPart
)
public function GetExportUrl (
	webPart : WebPart
) : String

Parameters

webPart

The WebPart that is being exported.

Return Value

A string that contains the relative virtual path and the query string that together form the request to export a control.

The value returned by the GetExportUrl method is a relative virtual path to the server location of the page that contains the control, plus the appended query string value that forms the export request submitted to the server. The GetExportUrl method encodes the string before allowing the request to be submitted, to protect against malicious script attacks.

NoteNote

For more information about securing Web Parts applications, see Securing Web Parts Pages.

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.

.NET Framework

Supported in: 2.0
Show: