Esempio n. 1
0
        public void InstantiateIn(Control container)
        {
            ListItemPlaceHolder phAll = new ListItemPlaceHolder();

            NavLinkForTemplate lnk = new NavLinkForTemplate();

            lnk.LinkText    = " LINK ";
            lnk.NavigateUrl = "#";

            ListItemWrapper wrap = new ListItemWrapper();

            wrap.Controls.Add(lnk);

            lnk.DataBinding += new EventHandler(lnkContent_DataBinding);

            phAll.Controls.Add(wrap);

            container.Controls.Add(phAll);
        }
Esempio n. 2
0
        public void InstantiateIn(Control container)
        {
            ListItemPlaceHolder phAll = new ListItemPlaceHolder();

            NavLinkForTemplate lnk = new NavLinkForTemplate();
            lnk.LinkText = " LINK ";
            lnk.NavigateUrl = "#";

            ListItemWrapper wrap = new ListItemWrapper();
            wrap.Controls.Add(lnk);

            lnk.DataBinding += new EventHandler(lnkContent_DataBinding);

            phAll.Controls.Add(wrap);

            container.Controls.Add(phAll);
        }