TemplateStack.Push(HttpContextBase, ITemplateFile) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.