protected void ShowMessage(string message)
        {
            MasterPage masterPage = this.Master;

            if (masterPage == null)
            {
                return;
            }

            BaseNopAdministrationMasterPage nopAdministrationMasterPage = masterPage as BaseNopAdministrationMasterPage;

            if (nopAdministrationMasterPage != null)
            {
                nopAdministrationMasterPage.ShowMessage(message);
            }
        }
        protected void ShowError(string Message, string CompleteMessage)
        {
            MasterPage masterPage = this.Master;

            if (masterPage == null)
            {
                return;
            }

            BaseNopAdministrationMasterPage nopAdministrationMasterPage = masterPage as BaseNopAdministrationMasterPage;

            if (nopAdministrationMasterPage != null)
            {
                nopAdministrationMasterPage.ShowMessage(Message, CompleteMessage);
            }
        }
Example #3
0
        protected void ShowMessage(string Message)
        {
            if (this.Page == null)
            {
                return;
            }

            MasterPage masterPage = this.Page.Master;

            if (masterPage == null)
            {
                return;
            }

            BaseNopAdministrationMasterPage nopAdministrationMasterPage = masterPage as BaseNopAdministrationMasterPage;

            if (nopAdministrationMasterPage != null)
            {
                nopAdministrationMasterPage.ShowMessage(Message, string.Empty);
            }
        }