TemplateStack Class
Represents a last-in-first-out (LIFO) collection of ITemplateFile template files.
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
The TemplateStack type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | GetCurrentTemplate | Returns the current template file from the specified HTTP context. |
![]() ![]() | Pop | Removes and returns the template file that is at the top of the stack in the specified HTTP context. |
![]() ![]() | Push | Inserts a template file at the top of the stack in the specified HTTP context. |
The WebPageExecutingBase class implements this interface, so most template files are of type WebPageExecutingBase or of a type that inherits from WebPageExecutingBase.
Show:
