Beispiel #1
0
 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;
 }
Beispiel #2
0
 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;
 }