C# 클래스 Castle.MonoRail.Framework.Views.Aspx.WebFormsViewEngine

Default implementation of a IViewEngine. Uses ASP.Net WebForms as views.
상속: ViewEngineBase
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono 1 사용 예제들

공개 메소드들

메소드 설명
CreateJSGenerator ( IRailsEngineContext context ) : object

Creates the JS generator.

GenerateJS ( TextWriter output, IRailsEngineContext context, Controller controller, string templateName ) : void

Generates the JS.

HasTemplate ( String templateName ) : bool

Evaluates whether the specified template exists.

Process ( IRailsEngineContext context, Controller controller, String viewName ) : void

Obtains the aspx Page from the view name dispatch its execution using the standard ASP.Net API.

Process ( TextWriter output, IRailsEngineContext context, Controller controller, string templateName ) : void

Processes the view - using the templateName to obtain the correct template and writes the results to the System.IO.TextWriter.

ProcessContents ( IRailsEngineContext context, Controller controller, String contents ) : void

Wraps the specified content in the layout using the context to output the result.

ProcessPartial ( TextWriter output, IRailsEngineContext context, Controller controller, string partialName ) : void

Processes the partial.

WebFormsViewEngine ( ) : System

Initializes a new instance of the WebFormsViewEngine class.

비공개 메소드들

메소드 설명
FinalizeView ( object sender, EventArgs e ) : void
GetCompiledPageInstance ( String viewName, HttpContext httpContext ) : IHttpHandler
GetCurrentController ( ) : Controller
HasLayout ( Controller controller ) : bool
IsTheSameView ( HttpContext httpContext, String viewName ) : bool
MapViewToPhysicalPath ( String viewName ) : String
MapViewToVirtualPath ( String viewName, string &physicalPath, HttpContext httpContext ) : String
ObtainMasterPage ( HttpContext httpContext, Controller controller ) : Page
PrepareLayout ( Controller controller, HttpContext httpContext ) : void
PrepareMasterPage ( object sender, EventArgs e ) : void
PrepareView ( object sender, EventArgs e ) : void
ProcessExecuteView ( IRailsEngineContext context, Controller controller, String viewName ) : void
ProcessInlineView ( Controller controller, String viewName, HttpContext httpContext ) : void
ProcessLayoutIfNeeded ( Controller controller, HttpContext httpContext, IHttpHandler childPage ) : bool
ProcessPage ( Controller controller, IHttpHandler page, HttpContext httpContext ) : void
ProcessPropertyBag ( IDictionary bag, IHttpHandler handler ) : void
RestoreFilter ( HttpResponse response ) : byte[]
SetPropertyValue ( IHttpHandler handler, object key, object value ) : void
StartFiltering ( HttpResponse response ) : void

메소드 상세

CreateJSGenerator() 공개 메소드

Creates the JS generator.
public CreateJSGenerator ( IRailsEngineContext context ) : object
context IRailsEngineContext The context.
리턴 object

GenerateJS() 공개 메소드

Generates the JS.
public GenerateJS ( TextWriter output, IRailsEngineContext context, Controller controller, string templateName ) : void
output System.IO.TextWriter The output.
context IRailsEngineContext The context.
controller Controller The controller.
templateName string Name of the template.
리턴 void

HasTemplate() 공개 메소드

Evaluates whether the specified template exists.
public HasTemplate ( String templateName ) : bool
templateName String
리턴 bool

Process() 공개 메소드

Obtains the aspx Page from the view name dispatch its execution using the standard ASP.Net API.
public Process ( IRailsEngineContext context, Controller controller, String viewName ) : void
context IRailsEngineContext
controller Controller
viewName String
리턴 void

Process() 공개 메소드

Processes the view - using the templateName to obtain the correct template and writes the results to the System.IO.TextWriter.
public Process ( TextWriter output, IRailsEngineContext context, Controller controller, string templateName ) : void
output System.IO.TextWriter
context IRailsEngineContext
controller Controller
templateName string
리턴 void

ProcessContents() 공개 메소드

Wraps the specified content in the layout using the context to output the result.
public ProcessContents ( IRailsEngineContext context, Controller controller, String contents ) : void
context IRailsEngineContext
controller Controller
contents String
리턴 void

ProcessPartial() 공개 메소드

Processes the partial.
public ProcessPartial ( TextWriter output, IRailsEngineContext context, Controller controller, string partialName ) : void
output System.IO.TextWriter The output.
context IRailsEngineContext The context.
controller Controller The controller.
partialName string The partial name.
리턴 void

WebFormsViewEngine() 공개 메소드

Initializes a new instance of the WebFormsViewEngine class.
public WebFormsViewEngine ( ) : System
리턴 System