TemplateStack.Push(HttpContextBase, ITemplateFile) Method

Definition

Inserts a template file at the top of the stack in the specified HTTP context.

public static void Push (System.Web.HttpContextBase httpContext, System.Web.WebPages.ITemplateFile templateFile);
static member Push : System.Web.HttpContextBase * System.Web.WebPages.ITemplateFile -> unit
Public Shared Sub Push (httpContext As HttpContextBase, templateFile As ITemplateFile)

Parameters

httpContext
HttpContextBase

The HTTP context that contains the stack that stores the template files.

templateFile
ITemplateFile

The template file to push onto the specified stack.

Exceptions

httpContext or templateFile are null.

Applies to