Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

WebPartManager::GetExportUrl Method

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
)

Parameters

webPart
Type: System.Web.UI.WebControls.WebParts::WebPart

The WebPart that is being exported.

Return Value

Type: System::String
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.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.