Share via


RenderWebPartForEdit Method

The RenderWebPartForEdit method of the Web Part Pages service returns an XML fragment that includes the Web Part property information and the rendering HTML.

Parameters

Return Value

A string that represents an XML fragment containing the Web Part property information and the rendering HTML.

Example

The following code example shows a locally defined RenderWebPartForEdit method that renders a Web Part by calling the RenderWebPartForEdit method of the Web Part Pages service through a proxy. It then displays the Web Part properties, the property values, and the rendered HTML. This code example and the proxy are part of a larger example provided for the Web Part Pages service.

Requirements

Platforms: Microsoft Windows Server 2003

Web Reference: http://Server_Name[sites/][Site_Name/]/_vti_bin/WebPartPages.asmx

Security: Code Access Security