Ejemplo n.º 1
0
        protected void AddRootAddButton()
        {
            AlphaPaging ap = ctrlSearch.FindControl <AlphaPaging>("ctrlAlphaPaging");

            if (ap.FindControl <ImageButton>("imgbtnAddRoot") == null)
            {
                ImageButton imgbtnAdd = new ImageButton();
                imgbtnAdd.ID       = "imgbtnAddRoot";
                imgbtnAdd.ImageUrl = "~/App_Themes/Admin_Default/images/add.png";
                //imgbtnAdd.Click += new ImageClickEventHandler(this.imgbtnAdd_Click);
                imgbtnAdd.OnClientClick = "return ShowInsertForm();";
                imgbtnAdd.ToolTip       = AppLogic.GetString("admin.common.Add", ThisCustomer.LocaleSetting) + " " + EntityType;

                ap.Controls.Add(imgbtnAdd);
            }
        }
        protected void AddRootAddButton()
        {
            AlphaPaging ap = ctrlSearch.FindControl <AlphaPaging>("ctrlAlphaPaging");

            if (ap.FindControl <HyperLink>("lnkAddProduct") == null)
            {
                HyperLink hl = new HyperLink();
                hl.ID                    = "lnkAddProduct";
                hl.Text                  = "Add Product";
                hl.ImageUrl              = "~/App_Themes/Admin_Default/images/add.png";
                hl.ToolTip               = AppLogic.GetString("admin.productgrid.AddNewProduct", ThisCustomer.LocaleSetting);
                hl.Attributes["style"]   = "cursor:pointer;";
                hl.Attributes["src"]     = "#";
                hl.Attributes["onclick"] = "return ShowInsertForm();";

                ap.Controls.Add(hl);
            }
        }