Login

Blog entries tagged with EPiServer CMS 5

Apr
04

Accessing CurrentPage from a static context

Posted by: Mari Jørgensen

Ever needed access to the CurrentPage object inside a static method or property? As long as you have a valid HttpContext this code will do the trickPageBase pageBase = HttpContext. Current. Handler as PageBase; string pageName = pageBase.... [Read full article]

2 Comments

EPiTrace logger