Partager via


RenderAsHtml(Boolean, Boolean, String) Method

The RenderAsHtml method of the SPView class returns the view in HTML format but allows for rendering within a frameset.

Parameters

bInFrameset  true to specify that the view is in a frameset; otherwise, false.

bIncludeNewItem  true to display the New List Item button; otherwise, false.

strSourceAbsoluteUrl   A string that contains the site-relative URL for the view in the form "Lists/List_Name/View_File_Name.aspx".

Return Value

A string that contains the view in HTML format.

Remarks

If both the bInFrameset parameter and the bIncludeNewItem parameter are set to true, then list URLs similar to the following are included in sort URLs:

&ListUrl=%2fTestWeb1%2fLists%2fTestCustList2%2fAllItems%2easpx&
   IncludeNewItem=True&Source=Lists%2fTestCustList2%2fview1%2easpx

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security