This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//include the jquery.blockui.js plugin on your page first | |
<script type="text/javascript"> | |
Page = Sys.WebForms.PageRequestManager.getInstance(); | |
Page.add_beginRequest(OnBeginRequest); | |
Page.add_endRequest(endRequest); | |
function OnBeginRequest(sender, args) { | |
$.blockUI(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// A helper class for Umbraco 7+ to get the currently logged on back office user from a non-backoffice context. | |
/// </summary> | |
public static class BackofficeUserHelper | |
{ | |
const string BackofficeIdentityKey = "UmbracoBackofficeIdentity"; | |
/// <summary> | |
/// The <c>UmbracoBackOfficeIdentity</c> representing the currently logged on Back Office user | |
/// </summary> |