Exemplo n.º 1
0
        protected override void OnActionsCreated(int cmdCount)
        {
            Control ctl;

            if (((ProductPage.Config(null, "HideAction") == "always") || ((ProductPage.Config(null, "HideAction") == "auto") && (cmdCount > 0))) && ((ctl = MenuTemplateControl.FindControl("MultipleUpload")) != null))
            {
                ctl.Visible = false;
                Page.ClientScript.RegisterClientScriptBlock(typeof(ClientScriptManager), ProductPage.AssemblyName + "_HideAction", " GetMultipleUploadEnabled = function() { return false; }; ", true);
            }
        }
        protected override void OnActionsCreated(int cmdCount)
        {
            Control ctl;

            if (((ProductPage.Config(null, "HideAction") == "always") || ((ProductPage.Config(null, "HideAction") == "auto") && (cmdCount > 0))) && ((ctl = MenuTemplateControl.FindControl("ExportToSpreadsheet")) != null))
            {
                ctl.Visible = false;
            }
        }