Пример #1
0
        protected override void OnInit(EventArgs e)
        {
            Assume(Page != null, "Extern: ASP.NET.");
            PageHost.Register(Page, Context).RegisterView(this);

            if (AutoDataBind)
            {
                Page.PreRenderComplete += (sender, args) => DataBind();
            }

            base.OnInit(e);
        }
Пример #2
0
        protected override void OnInit(EventArgs e)
        {
            PageHost.Register(this, Context);

            base.OnInit(e);
        }