Ejemplo n.º 1
0
            public virtual void InstantiateIn(Control control)
            {
                UserControl uc = (UserControl)HttpRuntime.CreatePublicInstance(_ctrlType);

                // Make sure that the user control is not used as the binding container,
                // since we want its *parent* to be the binding container.
                uc.SetNonBindingContainer();

                uc.InitializeAsUserControl(control.Page);

                control.Controls.Add(uc);
            }