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.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for