platinumdogs.me
SharePoint: Detect Page Edit or Design Mode in Publishing and Non-Publishing Sites
In your web part or user control, you may wish to know if the page on which your asset is placed is in edit or design mode, in order to alter the behaviour in some way. How you do this depends on w…