TemplateStack.GetCurrentTemplate(HttpContextBase) 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.
Returns the current template file from the specified HTTP context.
public static System.Web.WebPages.ITemplateFile GetCurrentTemplate (System.Web.HttpContextBase httpContext);
static member GetCurrentTemplate : System.Web.HttpContextBase -> System.Web.WebPages.ITemplateFile
Public Shared Function GetCurrentTemplate (httpContext As HttpContextBase) As ITemplateFile
Parameters
- httpContext
- HttpContextBase
The HTTP context that contains the stack that stores the template files.
Returns
The template file, removed from the top of the stack.