protected void btnAdd_Click(object sender, EventArgs e)
 {
     PluggContainer pc = new PluggContainer("en-us", PluggId);
     pc.GetComponentList();
     PluggComponent cmp = new PluggComponent();
     cmp.ComponentOrder = ComponentOrder;
     cmp.ComponentType = (EComponentType)(ddNewComponent.SelectedIndex+1);
     cmp.PluggId = PluggId;
     BaseHandler bh = new BaseHandler();
     bh.AddComponent(pc, cmp);
     Response.Redirect(DotNetNuke.Common.Globals.NavigateURL(TabId, "", "edit=0"));
 }
示例#2
0
        private void callingAddPlugg(int orderid)
        {
            var id = hdnDDLtxt.Value;

            BaseHandler plugghandler = new BaseHandler();
            PluggComponent pc = new PluggComponent();
            pc.ComponentOrder = orderid + 1;
            pc.ComponentType = (EComponentType)Enum.Parse(typeof(EComponentType), id);
            plugghandler.AddComponent(p, pc);
            Response.Redirect(DotNetNuke.Common.Globals.NavigateURL(TabId, "", new string[] { "edit=1", "language=" + curlan }));
        }
 protected void btnAdd_Click(object sender, EventArgs e)
 {
     BaseHandler plugghandler = new BaseHandler();
     PluggComponent pc = new PluggComponent();
     pc.ComponentOrder = Order + 1;
     pc.ComponentType = (EComponentType)Enum.Parse(typeof(EComponentType), ddCoponentList.SelectedValue);
     plugghandler.AddComponent(this.PluggContainer, pc);
     //Response.Redirect(DotNetNuke.Common.Globals.NavigateURL(this.TabID, "", new string[] { "edit=1", "language=" + this.CurrentLanguage }));
 }