R – Detect page is loaded into Sharepoint Designer

sharepointsharepoint-designer

Is there a way for a web part to figure out the hosting page is being loaded into SharePoint Designer ?

Best Answer

Assuming WSS 3.0 / MOSS 2007, Yes:

SPContext.Current.IsRemoteAuthoringTime

or, depending on your context,

SPContext.Current.IsDesigntime

Update: A cruder way might be to peek at the HttpRequest headers - I'm sure SPD sents a header.

-Oisin

Related Topic