WebPage.RenderPage Method

Renders a content 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 WebPage 
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

Return Value

Type: System.Web.WebPages.HelperResult
An object that can write the output of the page.

Remarks

The values passed using the data parameter can be accessed in the page using the PageData dictionary by position or by name.

See Also

Reference

WebPage Class

System.Web.WebPages Namespace