C# Class MvcContrib.Filters.LayoutAttribute

Inheritance: System.Web.Mvc.ActionFilterAttribute
Datei anzeigen Open project: atomicobject/mvccontrib Class Usage Examples

Public Methods

Method Description
LayoutAttribute ( string layout ) : System

Creates a LayoutAttribute.

OnResultExecuting ( System.Web.Mvc.ResultExecutingContext filterContext ) : void

Captures the result executing to inject a default layout.

Method Details

LayoutAttribute() public method

Creates a LayoutAttribute.
public LayoutAttribute ( string layout ) : System
layout string The default layout to use. Do not specify the extension.
return System

OnResultExecuting() public method

Captures the result executing to inject a default layout.
public OnResultExecuting ( System.Web.Mvc.ResultExecutingContext filterContext ) : void
filterContext System.Web.Mvc.ResultExecutingContext
return void