Hi,
i am working on upgrading a site from version 7.5 to version 10 and i'm struggling to work out a solution to an error i am getting. There is some code that is used to find out if the request is in preview mode which was working in 7.5 but doesn't work in version 10:
EPiServer.Web.Routing.Segments.RequestSegmentContext.CurrentContextMode == ContextMode.Preview
the problem is that RequestSegmentContext doesn't exist in EPiServer.Web.Routing.Segments in version 10 (http://world.episerver.com/documentation/class-library/?documentId=cms/10/549E82FF) so this code won't build. I have had a play around with some other options and searched online but i can't work out the correct way to determine if the request is in preview mode.
this seems like a simple & common bit of code so i'm wondering if anyone has found a way to do this in episerver 10?
cheers
Sam