I have upgraded from Sitecore 8.1 to Sitecore 8.2. I have a method in which I am using:
Sitecore.Context.PageMode.IsPageEditor
For this it is giving error:
attempt by method METHOD_NAME to access method 'Sitecore.Context+PageMode.get_IsPageEditor()' failed.
What am I missing?
The
Is deprecated in the Sitecore.Kernel since Sitecore 8.0 Update-6 see the release notes:
In Sitecore 8.2 update 1 the Sitecore.Context.PageMode.IsPageEditor is removed use
Same for: