WebPartManager.GetExportUrl(WebPart) Method

Definition

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

C#
public string GetExportUrl(System.Web.UI.WebControls.WebParts.WebPart webPart);

Parameters

webPart
WebPart

The WebPart that is being exported.

Returns

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

Remarks

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.

Napomena

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

Applies to

Proizvod Verzije
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also