protected internal override void OnInit(EventArgs e) { base.OnInit(e); if (!DesignMode && !String.IsNullOrEmpty(ItemType)) { DataBoundControlHelper.EnableDynamicData(this, ItemType); } }
protected internal override void OnInit(EventArgs e) { base.OnInit(e); if (Page != null) { Page.PreLoad += new EventHandler(this.OnPagePreLoad); if (!IsViewStateEnabled && Page.IsPostBack) { RequiresDataBinding = true; } } if (!DesignMode && !String.IsNullOrEmpty(ItemType)) { DataBoundControlHelper.EnableDynamicData(this, ItemType); } }