Example #1
0
        protected void ShowError(string message, string completeMessage)
        {
            MasterPage masterPage = this.Master;

            if (masterPage == null)
            {
                return;
            }

            BaseAdministrationMasterPage baseAdministrationMasterPage = masterPage as BaseAdministrationMasterPage;

            if (baseAdministrationMasterPage != null)
            {
                baseAdministrationMasterPage.ShowError(message, completeMessage);
            }
        }
Example #2
0
        protected void ShowMessage(string message)
        {
            if (this.Page == null)
            {
                return;
            }

            MasterPage masterPage = this.Page.Master;

            if (masterPage == null)
            {
                return;
            }

            BaseAdministrationMasterPage baseAdministrationMasterPage = masterPage as BaseAdministrationMasterPage;

            if (baseAdministrationMasterPage != null)
            {
                baseAdministrationMasterPage.ShowMessage(message);
            }
        }