Ejemplo n.º 1
0
        private void pmwlList_DataBinding(object sender, EventArgs e)
        {
            PostMetaWordList pmContent  = (PostMetaWordList)sender;
            RepeaterItem     container  = (RepeaterItem)pmContent.NamingContainer;
            Guid             guidSender = new Guid(DataBinder.Eval(container, "DataItem.Root_ContentID").ToString());

            pmContent.AssignedRootContentID = guidSender;
        }
Ejemplo n.º 2
0
        public void InstantiateIn(Control container)
        {
            PlaceHolder ph = new PlaceHolder();

            container.Controls.Add(ph);

            Control c = GetCtrl(ph);

            PostMetaWordList wplCat = (PostMetaWordList)cu.FindControl("wplCat", c);
            PostMetaWordList wpltag = (PostMetaWordList)cu.FindControl("wpltag", c);

            wplCat.DataBinding += new EventHandler(pmwlList_DataBinding);
            wpltag.DataBinding += new EventHandler(pmwlList_DataBinding);

            ph.Controls.Add(c);
        }