Static access to the PageBase during page generation

Vote:
 
Hi, I'm trying to write a control that renders XML with some XSL to generate the HTML that the user will eventually see. I've created an XSLT extension in order to do some of the processing from which I want to access properties of the EPiServer page currently being rendered. From within the XSL extension code I don't have access to the PageBase (i.e. through Control.Page). So, I'm wondering is there some static field somewhere that will allow me to access the PageBase object (and in turn the CurrentPage)? Regards, Andy
#16015
Mar 25, 2008 19:07
Vote:
 
Can't you just cast the Control.Page property to a PageBase? ((PageBase)Control.Page).CurrentPage
#16811
Mar 25, 2008 19:20
Vote:
 
Hi Linus, Unfortunately I'm in an XSL extension and not a Control, so there is no Control property to access. Cheers, Andy
#16812
Mar 25, 2008 19:20
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.