protected internal static void EnsureDirectEvent() { if (!RequestManager.IsAjaxRequest) { throw new InvalidOperationException("This operation requires an AjaxRequest"); } }
protected virtual void SetHideHeaders(bool hide) { RequestManager.EnsureDirectEvent(); this.AddScript("{0}.headerCt.setVisible({1});", this.ClientID, JSON.Serialize(!hide)); this.DoComponentLayout(); }