Beispiel #1
0
        protected override void RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
        {
            if (eventArgument == null && sourceControl is Form)
            {
                // This is really a default event sent by an HTML browser. Try to find
                // the default event handler from the active form, and call it.

                Form activeForm = ActiveForm;
                if (activeForm != null)
                {
                    IPostBackEventHandler defaultHandler = activeForm.DefaultEventHandler;
                    if (defaultHandler != null)
                    {
                        base.RaisePostBackEvent(defaultHandler, null);
                    }
                }

                // Otherwise, eat the event - there's no one to send it to, and the form
                // can't use it.
            }
            else
            {
                base.RaisePostBackEvent(sourceControl, eventArgument);
            }
        }
Beispiel #2
0
 protected override void RaisePostBackEvent(IPostBackEventHandler sourceControl, string eventArgument)
 {
     if (ResponseShouldTerminate == false)
     {
         base.RaisePostBackEvent(sourceControl, eventArgument);
     }
 }
Beispiel #3
0
    protected override void RaisePostBackEvent(IPostBackEventHandler source, string eventArgument)
    {
        base.RaisePostBackEvent(source, eventArgument);

        if ((source as Button).Text.Contains("Chat com Líder - Grupo"))
        {
            historicoMensagem.Visible = false;
            SqlConnection conn    = new SqlConnection(new ClsFuncoes().conexao);
            Label         lblChat = new Label();
            lblChat.Attributes.Add("style", "font-weight: bolder; margin-top: 10px; margin-bottom: 10px;");
            Session["Grupo"] = (source as Button).Text.Replace("Chat com Líder - ", "");
            string agent = (source as Button).Text.Replace("Chat com Líder - ", "");
            conn.Open();
            string         str  = "SELECT NOME FROM ALUNOS WHERE LIDER = 'L' AND GRUPO ='" + agent + "'";
            SqlCommand     cmd1 = new SqlCommand(str, conn);
            SqlDataAdapter da   = new SqlDataAdapter(cmd1);
            DataSet        ds   = new DataSet();
            da.Fill(ds);
            lblChat.Text = "Chat com Líder - " + agent;
            pnlChat.Controls.Add(lblChat);
            DataList1.DataSource = ds;
            DataList1.DataBind();
            conn.Close();
            carregarChat.Visible = true;
        }
    }
Beispiel #4
0
 internal void RegisterEventHandler(IPostBackEventHandler control)
 {
     if (_defaultEventHandler == null)
     {
         _defaultEventHandler = control;
     }
 }
Beispiel #5
0
 /// <summary>
 /// 重写此方法,如果是从Session中恢复状态则无需触发控件事件
 /// </summary>
 /// <param name="sourceControl"></param>
 /// <param name="eventArgument"></param>
 protected override void RaisePostBackEvent(IPostBackEventHandler sourceControl, string eventArgument)
 {
     if (!taoist_IsLoadPageStateFromToSession)
     {
         base.RaisePostBackEvent(sourceControl, eventArgument);
     }
 }
Beispiel #6
0
    protected override void RaisePostBackEvent(IPostBackEventHandler source, string eventArgument)
    {
        base.RaisePostBackEvent(source, eventArgument);

        if ((source as Button) != null)
        {
            if ((source as Button).Text.Contains("Criar Aula"))
            {
                historicoMensagem.Visible = false;
                SqlConnection conn    = new SqlConnection(new ClsFuncoes().conexao);
                Label         lblChat = new Label();
                Session["Grupo"] = (source as Button).Text.Replace("Criar Aula ", "");
                string agent = (source as Button).Text.Replace("Criar Aula ", "");
                conn.Open();
                string         str  = "SELECT NOME FROM ALUNOS WHERE GRUPO ='" + agent + "'";
                SqlCommand     cmd1 = new SqlCommand(str, conn);
                SqlDataAdapter da   = new SqlDataAdapter(cmd1);
                DataSet        ds   = new DataSet();
                da.Fill(ds);
                nomeGrupo = "Sala de Aula " + agent;
                spanNomeGrupo.InnerText = nomeGrupo;
                pnlChat.Controls.Add(lblChat);
                DataList1.DataSource = ds;
                DataList1.DataBind();
                conn.Close();
                carregarChat.Visible = true;
            }
        }
    }
Beispiel #7
0
 protected override void RaisePostBackEvent(IPostBackEventHandler sourceControl, string eventArgument)
 {
     this.InvokeAndHandleException(delegate
     {
         base.RaisePostBackEvent(sourceControl, eventArgument);
     });
 }
 protected override void RaisePostBackEvent(
     IPostBackEventHandler sourceControl, string eventArgument)
 {
     //doing something with the information.
     EventLog.WriteEntry("Page event for " + sourceControl.UniqueID + " at " + this.Request.Url);
     //then call the base implementation
     base.RaisePostBackEvent(sourceControl, eventArgument);
 }
Beispiel #9
0
 protected override void RaisePostBackEvent(IPostBackEventHandler sourceControl, string eventArgument)
 {
     if (shouldNotRaiseEvents)
     {
         return;
     }
     base.RaisePostBackEvent(sourceControl, eventArgument);
 }
Beispiel #10
0
 protected override void RaisePostBackEvent(IPostBackEventHandler sourceControl, string eventArgument)
 {
     if (sourceControl == HwMenuButton)
     {
         ButtonTag = eventArgument;
     }
     base.RaisePostBackEvent(sourceControl, eventArgument);
 }
    protected override void RaisePostBackEvent(
        IPostBackEventHandler sourceControl,
        string eventArgument
        )
    {
        // here is the control that caused the postback
        var postBackControl = sourceControl;

        base.RaisePostBackEvent(sourceControl, eventArgument);
    }
Beispiel #12
0
        [ExpectedException(typeof(NullReferenceException))]           // since 2.0 RC :-(
#endif
        public void IPostBackEventHandler_RaisePostBackEvent()
        {
            TestHtmlAnchor a = new TestHtmlAnchor();

            a.ServerClick += new EventHandler(ServerClick);
            IPostBackEventHandler pbeh = (a as IPostBackEventHandler);

            serverClick = false;
            pbeh.RaisePostBackEvent("mono");
            Assert.IsTrue(serverClick, "ServerClick");
        }
Beispiel #13
0
 protected override void RaisePostBackEvent(IPostBackEventHandler sourceControl, string eventArgument)
 {
     try
     {
         base.RaisePostBackEvent(sourceControl, eventArgument);
     }
     catch (Exception ex)
     {
         ReportException(ex);
     }
 }
Beispiel #14
0
 protected override void RaisePostBackEvent(IPostBackEventHandler sourceControl, string eventArgument)
 {
     try
     {
         base.RaisePostBackEvent(sourceControl, eventArgument);
     }
     catch (Exception ex)
     {
         ReportException(ex);
     }
 }
Beispiel #15
0
 protected override void RaisePostBackEvent(IPostBackEventHandler sourceControl, string eventArgument)
 {
     if (IsAuthenticated())
     {
         base.RaisePostBackEvent(sourceControl, eventArgument);
     }
     else
     {
         FormsAuthentication.RedirectToLoginPage();
     }
 }
Beispiel #16
0
 protected virtual void RaisePostBackEvent(string argument)
 {
     base.ValidateEvent(this.UniqueID, argument);
     if (base.AdapterInternal != null)
     {
         IPostBackEventHandler adapterInternal = base.AdapterInternal as IPostBackEventHandler;
         if (adapterInternal != null)
         {
             adapterInternal.RaisePostBackEvent(argument);
         }
     }
 }
Beispiel #17
0
        /// <devdoc>
        ///    <para>[To be supplied.]</para>
        /// </devdoc>
        protected virtual void RaisePostBackEvent(string argument)
        {
            ValidateEvent(UniqueID, argument);

            if (AdapterInternal != null)
            {
                IPostBackEventHandler pbeh = AdapterInternal as IPostBackEventHandler;
                if (pbeh != null)
                {
                    pbeh.RaisePostBackEvent(argument);
                }
            }
        }
Beispiel #18
0
 /// <summary>
 /// Override lại hàm RaisePostBackEvent, chỉ gọi đến các hàm sự kiện khi trang chưa bị
 /// redirect, nếu đã redirect, bỏ qua để tiết kiệm bộ nhớ
 /// </summary>
 /// <param name="sourceControl"></param>
 /// <param name="eventArgument"></param>
 protected override void RaisePostBackEvent(IPostBackEventHandler sourceControl, string eventArgument)
 {
     if (_isRedirected == false)
     {
         try
         {
             base.RaisePostBackEvent(sourceControl, eventArgument);
         }
         catch (Exception ex)
         {
             logger.Error("Error in " + sourceControl + eventArgument, ex);
         }
     }
 }
Beispiel #19
0
 /// <summary>
 /// 当页面事件发生时
 /// </summary>
 /// <param name="sourceControl"></param>
 /// <param name="eventArgument"></param>
 protected virtual void BeforeEventRaise(IPostBackEventHandler sourceControl, string eventArgument)
 {
     if (!(sourceControl is PageNavigation) && _controls_auto_process.ContainsKey(((Control)sourceControl).ID))
     {
         //执行预调用logic
         WebParameters.SetValue("__CurrentEventArgs", ComFunc.nvl(eventArgument));
         WebParameters.RequestResourceName = this.PageName;
         WebParameters.Action = PostBackActionKey.POST_BACK_EVENT + "." + ((Control)sourceControl).ID;
         CallLogic();
         //回写页面数据
         SetPageDataBind();
         SetPageModelValue();
     }
 }
Beispiel #20
0
    /// <summary>
    /// Notifies the server control that caused the postback that it should handle an incoming postback event.
    /// </summary>
    /// <param name="sourceControl">The ASP.NET server control that caused the postback. This control must implement the <see cref="T:System.Web.UI.IPostBackEventHandler"/> interface.</param>
    /// <param name="eventArgument">The postback argument.</param>
    protected override void RaisePostBackEvent(IPostBackEventHandler sourceControl, string eventArgument)
    {
        // We want the postback event to get raised normally - however, if there is an error in an API call, we
        // need to catch it and display a simple banner message, and return control to the user
        // this keeps us from having to write logic to check to Success of an API call every time we make a call

        try
        {
            base.RaisePostBackEvent(sourceControl, eventArgument);
        }
        catch (ConciergeClientException ex)
        {
            DisplayBannerMessage(true, ex.Message);
        }
    }
        public SPRibbonMethodPostBackCommand(string commandId, IPostBackEventHandler eventHandler,
                                             Action <object[]> action, string confirmMsg, object[] eventArgs) : base(commandId)
        {
            if (eventHandler == null)
            {
                throw new ArgumentNullException("eventHandler");
            }

            if (action == null)
            {
                throw new ArgumentNullException("action");
            }

            this.eventHandler = eventHandler;
            ActionMethod      = action;
            ConfirmMessage    = confirmMsg;
            this.eventArgs    = eventArgs;
        }
        public SPRibbonMethodPostBackCommand(string commandId, IPostBackEventHandler eventHandler,
            Action<object[]> action, string confirmMsg, object[] eventArgs)
            : base(commandId)
        {
            if (eventHandler == null)
            {
                throw new ArgumentNullException("eventHandler");
            }

            if (action == null)
            {
                throw new ArgumentNullException("action");
            }

            this.eventHandler = eventHandler;
            ActionMethod = action;
            ConfirmMessage = confirmMsg;
            this.eventArgs = eventArgs;
        }
Beispiel #23
0
        protected override void OnLoad(EventArgs e)
        {
            IPostBackEventHandler eventHandler = this as IPostBackEventHandler;

            if (Form != null && eventHandler != null && IsFormSubmitControl())
            {
                Form.RegisterEventHandler(eventHandler);
            }

            // Handle custom attributes.

            if (_customAttributes != null && !MobilePage.AllowCustomAttributes)
            {
                // AUI 2346

                ICollection keys = CustomAttributes.Keys;
                String      illegalCustomAttributes = null;
                if (keys != null)
                {
                    foreach (String key in keys)
                    {
                        String keyLower = key.ToLower();
                        if (Array.BinarySearch(_ignoredCustomAttributes, keyLower) < 0)
                        {
                            if (illegalCustomAttributes != null)
                            {
                                illegalCustomAttributes += "; ";
                            }
                            illegalCustomAttributes += key + "=" + CustomAttributes[key];
                        }
                    }
                }

                if (illegalCustomAttributes != null)
                {
                    throw new Exception(
                              SR.GetString(SR.MobileControl_NoCustomAttributes,
                                           illegalCustomAttributes));
                }
            }
            Adapter.OnLoad(e);
            base.OnLoad(e);
        }
Beispiel #24
0
        protected override void RaisePostBackEvent(IPostBackEventHandler source, string eventArgument)
        {
            try
            {
                base.RaisePostBackEvent(source, eventArgument);
            }
            catch
            {
                this.ShowError("Error has occurred.");
            }
            if (eventArgument == "")
            {
                return;
            }
            if (!int.TryParse(eventArgument, out _))
            {
                return;
            }
            var grid = (RadGrid)source;

            if (grid.ID == "RadGrid1")
            {
                GridDataItem item      = (GridDataItem)RadGrid1.MasterTableView.Items[eventArgument];
                var          contactId = item.GetDataKeyValue("id").ToString();
                if (string.IsNullOrEmpty(contactId))
                {
                    return;
                }
                var contact = WcfProxy.PerformRemote <IContactService, ContactDto>(x => x.GetById(contactId.ToInt()));
                if (contact != null)
                {
                    personImage.Attributes["src"] = $@"~/images/{contactId.ToInt()}.jpg";
                    lblName.Text         = $@"{contact.FirstName} {contact.Mobile}";
                    tbMobile.Text        = contact.Mobile;
                    hlMobile.NavigateUrl = $@"tel:{contact.Mobile}";
                    var script =
                        "function g(){openItemWindow(); Sys.Application.remove_load(g);}Sys.Application.add_load(g);";
                    ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, true);
                }
            }
        }
Beispiel #25
0
 protected override void RaisePostBackEvent(IPostBackEventHandler sourceControl, string eventArgument)
 {
     if ((sourceControl is Button) || (sourceControl is ImageButton))
     {
         bool   haveRight    = false;
         string FUNC_KeyWord = string.Empty;
         if (sourceControl is Button)
         {
             FUNC_KeyWord = (sourceControl as Button).ID;
         }
         else if ((sourceControl is ImageButton))
         {
             FUNC_KeyWord = (sourceControl as ImageButton).ID;
         }
         //当前按钮权限不存在情况,不作按钮权限限制
         if (!this.ButtonSecuritys.Keys.Contains(FUNC_KeyWord))
         {
             base.RaisePostBackEvent(sourceControl, eventArgument);
             return;
         }
         haveRight = base.ACLService.IsActionAllowed(this.ButtonSecuritys[FUNC_KeyWord]);
         if (haveRight)
         {
             base.RaisePostBackEvent(sourceControl, eventArgument);
         }
         else
         {
             //无权限的处理
             //或提示或跳转等等
             //System.Web.HttpContext.Current.Response.End();
             this.ShowMessage("你没有该按钮的操作权限,请与管理联系。");
         }
     }
     else
     {
         base.RaisePostBackEvent(sourceControl, eventArgument);
     }
 }
Beispiel #26
0
    protected override void RaisePostBackEvent(IPostBackEventHandler sourceControl, string eventArgument)
    {
        base.RaisePostBackEvent(sourceControl, eventArgument);

        try
        {
            if (sourceControl == grdLoadOrder)
            {
                string[] eventArgumentData = eventArgument.Split(',');
                if (eventArgumentData[0] == "RowMoved")
                {
                    GridItem movedItem  = ((grdLoadOrder.MasterTableView.Controls[0] as Table).Rows[int.Parse(eventArgumentData[1])] as GridItem);
                    GridItem beforeItem = ((grdLoadOrder.MasterTableView.Controls[0] as Table).Rows[int.Parse(eventArgumentData[2])] as GridItem);

                    object key1 = grdLoadOrder.MasterTableView.DataKeyValues[movedItem.ItemIndex]["OrderID"];
                    object key2 = grdLoadOrder.MasterTableView.DataKeyValues[beforeItem.ItemIndex]["OrderID"];



                    string currentLoadOrder = this.LoadOrder.Tables[0].Rows[0]["CurrentLoadOrder"].ToString();
                    currentLoadOrder = currentLoadOrder.Replace(key2.ToString(), "??");
                    currentLoadOrder = currentLoadOrder.Replace(key1.ToString(), "!!");
                    currentLoadOrder = currentLoadOrder.Replace("??", key1.ToString());
                    currentLoadOrder = currentLoadOrder.Replace("!!", key2.ToString());

                    Orchestrator.Facade.ICollectDropLoadOrder facLoadOrder = new Orchestrator.Facade.CollectDrop();
                    int instructionId = int.Parse(Request.QueryString["instructionID"]);
                    facLoadOrder.UpdateLoadOrder(instructionId, currentLoadOrder, Page.User.Identity.Name);
                    this.LoadOrder = null;

                    grdLoadOrder.Rebind();
                }
            }
        }
        catch (Exception ex)
        {
        }
    }
Beispiel #27
0
        protected override void RaisePostBackEvent(IPostBackEventHandler sourceControl, string eventArgument)
        {
            try
            {
                if (eventArgument == "Rebind")
                {
                    IndCatGrid sourceGrid = (IndCatGrid)sourceControl;
                    sourceGrid.SetPage();
                }
            }
            catch (IndException ex)
            {
                ShowError(ex);
                return;
            }
            catch (Exception ex)
            {
                ShowError(new IndException(ex));
                return;
            }

            base.RaisePostBackEvent(sourceControl, eventArgument);
        }
 protected override void RaisePostBackEvent(IPostBackEventHandler sourceControl, string eventArgument)
 {
     if (m_bIsTerminating == false)
         base.RaisePostBackEvent(sourceControl, eventArgument);
 }
 public SPRibbonMethodPostBackCommand(string commandId, IPostBackEventHandler eventHandler,
     Action<object[]> action, object[] eventArgs)
     : this(commandId, eventHandler, action, null, eventArgs)
 {
 }
    protected override void RaisePostBackEvent(IPostBackEventHandler source, string eventArgument)
    {
        base.RaisePostBackEvent(source, eventArgument);
        if (source is RadGrid)
        {
            switch (eventArgument)
            {
                case "Rebind":

                    RadGrid1.Rebind();
                    break;
                case "RebindAndNavigate":

                    RadGrid1.MasterTableView.CurrentPageIndex = RadGrid1.MasterTableView.PageCount - 1;
                    RadGrid1.Rebind();
                    break;
            }
        }
    }
Beispiel #31
0
        /// <summary>
        /// Raises the post back event.
        /// </summary>
        protected override void RaisePostBackEvent(IPostBackEventHandler source, string e)
        {
            PostBackEventRaising?.Invoke(source, e);

            base.RaisePostBackEvent(source, e);
        }
 protected override void RaisePostBackEvent(IPostBackEventHandler sourceControl, string eventArgument)
 {
     HttpContext.Current.Trace.Warn(MethodInfo.GetCurrentMethod().Name);
     base.RaisePostBackEvent(sourceControl, eventArgument);
 }
 protected virtual new void RaisePostBackEvent (IPostBackEventHandler sourceControl, string eventArgument)
 {
   Contract.Requires (sourceControl != null);
 }
 public virtual void RegisterRequiresRaiseEvent(IPostBackEventHandler control)
 {
     this._registeredControlThatRequireRaiseEvent = control;
 }
 /// <summary>
 /// 重写此方法,如果是从Session中恢复状态则无需触发控件事件
 /// </summary>
 /// <param name="sourceControl"></param>
 /// <param name="eventArgument"></param>
 protected override void RaisePostBackEvent(IPostBackEventHandler sourceControl, string eventArgument)
 {
     if (!taoist_IsLoadPageStateFromToSession)
     {
         base.RaisePostBackEvent(sourceControl, eventArgument);
     }
 }
    protected override void RaisePostBackEvent(IPostBackEventHandler sourceControl, string eventArgument)
    {
        base.RaisePostBackEvent(sourceControl, eventArgument);

        if (sourceControl is RadGrid)
        {
            switch (eventArgument)
            {
                case "Rebind":
                    gvActivities.Rebind();
                    gvFundingPlan.Rebind();

                    if(gvActivities.MasterTableView.Items.Count <= 0)
                        Response.Redirect("FundingPlan.aspx");
                    break;
            }
        }
    }
 public SPRibbonMethodPostBackCommand(string commandId, IPostBackEventHandler eventHandler,
                                      Action <object[]> action, string confirmMsg)
     : this(commandId, eventHandler, action, confirmMsg, null)
 {
 }
Beispiel #38
0
	protected virtual void RaisePostBackEvent (IPostBackEventHandler sourceControl, string eventArgument)
	{
		sourceControl.RaisePostBackEvent (eventArgument);
	}
Beispiel #39
0
 /// <summary>
 /// 当页面事件发生之後
 /// </summary>
 /// <param name="sourceControl"></param>
 /// <param name="eventArgument"></param>
 protected virtual void AfterEventRaise(IPostBackEventHandler sourceControl, string eventArgument)
 {
 }
 public SPRibbonMethodPostBackCommand(string commandId, IPostBackEventHandler eventHandler,
     Action<object[]> action, string confirmMsg)
     : this(commandId, eventHandler, action, confirmMsg, null)
 {
 }
Beispiel #41
0
	void ProcessPostData (NameValueCollection data, bool second)
	{
		NameValueCollection requestValues = _requestValueCollection == null ? new NameValueCollection () : _requestValueCollection;
		
		if (data != null && data.Count > 0) {
			var used = new Dictionary <string, string> (StringComparer.Ordinal);
			foreach (string id in data.AllKeys) {
				if (id == "__VIEWSTATE" || id == postEventSourceID || id == postEventArgumentID || id == ClientScriptManager.EventStateFieldName)
					continue;
			
				if (used.ContainsKey (id))
					continue;

				used.Add (id, id);

				Control ctrl = FindControl (id, true);
				if (ctrl != null) {
					IPostBackDataHandler pbdh = ctrl as IPostBackDataHandler;
					IPostBackEventHandler pbeh = ctrl as IPostBackEventHandler;

					if (pbdh == null) {
						if (pbeh != null)
							formPostedRequiresRaiseEvent = pbeh;
						continue;
					}
		
					if (pbdh.LoadPostData (id, requestValues) == true) {
						if (requiresPostDataChanged == null)
							requiresPostDataChanged = new List <IPostBackDataHandler> ();
						requiresPostDataChanged.Add (pbdh);
					}
				
					if (_requiresPostBackCopy != null)
						_requiresPostBackCopy.Remove (id);

				} else if (!second) {
					if (secondPostData == null)
						secondPostData = new NameValueCollection ();
					secondPostData.Add (id, data [id]);
				}
			}
		}

		List <string> list1 = null;
		if (_requiresPostBackCopy != null && _requiresPostBackCopy.Count > 0) {
			string [] handlers = (string []) _requiresPostBackCopy.ToArray ();
			foreach (string id in handlers) {
				IPostBackDataHandler pbdh = FindControl (id, true) as IPostBackDataHandler;
				if (pbdh != null) {			
					_requiresPostBackCopy.Remove (id);
					if (pbdh.LoadPostData (id, requestValues)) {
						if (requiresPostDataChanged == null)
							requiresPostDataChanged = new List <IPostBackDataHandler> ();
	
						requiresPostDataChanged.Add (pbdh);
					}
				} else if (!second) {
					if (list1 == null)
						list1 = new List <string> ();
					list1.Add (id);
				}
			}
		}
		_requiresPostBackCopy = second ? null : list1;
		if (second)
			secondPostData = null;
	}
        /// <include file='doc\MobilePage.uex' path='docs/doc[@for="MobilePage.RaisePostBackEvent"]/*' />
        protected override void RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
        {
            if (eventArgument == null && sourceControl is Form)
            {
                // This is really a default event sent by an HTML browser. Try to find
                // the default event handler from the active form, and call it.

                Form activeForm = ActiveForm;
                if (activeForm != null)
                {
                    IPostBackEventHandler defaultHandler = activeForm.DefaultEventHandler;
                    if (defaultHandler != null)
                    {
                        base.RaisePostBackEvent(defaultHandler, null);
                    }
                }

                // Otherwise, eat the event - there's no one to send it to, and the form
                // can't use it.
            }
            else
            {
                base.RaisePostBackEvent(sourceControl, eventArgument);
            }
        }
Beispiel #43
0
	public virtual void RegisterRequiresRaiseEvent (IPostBackEventHandler control)
	{
		requiresRaiseEvent = control;
	}
 public virtual new void RegisterRequiresRaiseEvent(IPostBackEventHandler control)
 {
 }
 public SPRibbonMethodPostBackCommand(string commandId, IPostBackEventHandler eventHandler,
                                      Action <object[]> action, object[] eventArgs)
     : this(commandId, eventHandler, action, null, eventArgs)
 {
 }
 protected override void RaisePostBackEvent(IPostBackEventHandler sourceControl, string eventArgument)
 {
     Response.Write(string.Format("RaisePostBackEvent {0}<br/>", DateTime.Now.ToUniversalTime()));
     base.RaisePostBackEvent(sourceControl, eventArgument);
 }
    protected override void RaisePostBackEvent(IPostBackEventHandler sourceControl, string eventArgument)
    {
        base.RaisePostBackEvent(sourceControl, eventArgument);

        if (sourceControl is RadGrid)
        {
            switch (eventArgument)
            {
                case "Rebind":
                    RadGrid2.Rebind();
                    break;
            }
        }
    }
Beispiel #48
0
 internal void RegisterEventHandler(IPostBackEventHandler control)
 {
     if (_defaultEventHandler == null)
     {
         _defaultEventHandler = control;
     }
 }