Table of Contents

Class WebFormViewEngine

Namespace
System.Web.Mvc
Assembly
System.Web.Mvc.dll

Represents a view engine that is used to render a Web Forms page to the response.

public class WebFormViewEngine : BuildManagerViewEngine, IViewEngine
Inheritance
WebFormViewEngine
Implements
Inherited Members

Constructors

WebFormViewEngine()

Initializes a new instance of the WebFormViewEngine class.

public WebFormViewEngine()

WebFormViewEngine(IViewPageActivator)

Initializes a new instance of the WebFormViewEngine class using the specified view page activator.

public WebFormViewEngine(IViewPageActivator viewPageActivator)

Parameters

viewPageActivator IViewPageActivator

An instance of a class that implements the IViewPageActivator interface.

Methods

CreatePartialView(ControllerContext, string)

Creates the specified partial view by using the specified controller context.

protected override IView CreatePartialView(ControllerContext controllerContext, string partialPath)

Parameters

controllerContext ControllerContext

The controller context.

partialPath string

The partial path.

Returns

IView

The partial view.

CreateView(ControllerContext, string, string)

Creates the specified view by using the specified controller context and the paths of the view and master view.

protected override IView CreateView(ControllerContext controllerContext, string viewPath, string masterPath)

Parameters

controllerContext ControllerContext

The controller context.

viewPath string

The view path.

masterPath string

The master-view path.

Returns

IView

The view.