WebPageBase.RenderPage Method
Renders the content of one page within another page.
Namespace: System.Web.WebPages
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
Syntax
'Declaration
Public Overrides Function RenderPage ( _
path As String, _
ParamArray data As Object() _
) As HelperResult
'Usage
Dim instance As WebPageBase
Dim path As String
Dim data As Object()
Dim returnValue As HelperResult
returnValue = instance.RenderPage(path, _
data)
public override HelperResult RenderPage(
string path,
params Object[] data
)
public:
virtual HelperResult^ RenderPage(
String^ path,
... array<Object^>^ data
) override
abstract RenderPage :
path:string *
data:Object[] -> HelperResult
override RenderPage :
path:string *
data:Object[] -> HelperResult
public override function RenderPage(
path : String,
... data : Object[]
) : HelperResult
Parameters
- path
Type: System.String
The path of the page to render.
- data
Type: System.Object[]
(Optional) An array of data to pass to the page being rendered. In the rendered page, these parameters can be accessed by using the PageData property.
Return Value
Type: System.Web.WebPages.HelperResult
The HTML content to render.