November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
One easy way is to change the master page by overrirde the OnPreInit
protected override void OnPreInit(EventArgs e)
{
if(Request["404"]!=null)
{
MasterPageFile = "/Custom/MasterPages/PageNotFound.master";
}
}
Then you can easy use the code Hernrik posted.
You could create a PagePlugIn and hook the PageBase.PageSetup event and then attach your code to every page request.
Check out Allan Thraens blogpost on how he does much the same thing, though rendering to PDF, but the same principle
would apply: http://labs.episerver.com/en/Blogs/Allan/Dates/112230/7/Output-EPiServer-Pages-as-PDF/
/johan
Hi all,
I am looking to render the contents/properties of a page in xml as opposed to using the pagetype's associated template - if a parameter was present in the querystring.
I was thinking of writing a httphandler to do this but it seems it would be difficult to get access to the requested page's PageData (in the 'ProcessRequest' method).
Is there some way of achieving this? - if so any help would be much appreciated.
Thank You