protected override void CreateChildControls() { cb = new Callback(); cb.ID = "CB_" + this.ClientID; if (HttpContext.Current.Request.Params["amtsdebug"] == "true" || HttpContext.Current.Request.Params["amdebug"] == "true") { cb.Debug = true; } else { cb.Debug = false; } if (!(CallBackOnComplete == string.Empty)) { cb.OnCallbackComplete = CallBackOnComplete; } Controls.CallBackContent cnt = new Controls.CallBackContent(); cnt.Controls.Add(ModalContent); cb.Content = cnt; this.Controls.Add(cb); ChildControlsCreated = true; }
protected override void CreateChildControls() { cb = new Callback(); cb.ID = "CB_" + this.ClientID; if (HttpContext.Current.Request.Params["amtsdebug"] == "true" || HttpContext.Current.Request.Params["amdebug"] == "true") { cb.Debug = true; } else { cb.Debug = false; } if (!(CallBackOnComplete == string.Empty)) { cb.OnCallbackComplete = CallBackOnComplete; } Controls.CallBackContent cnt = new Controls.CallBackContent(); cnt.Controls.Add(ModalContent); cb.Content = cnt; this.Controls.Add(cb); ChildControlsCreated = true; }