Error: Invalid postback or callback argument

后端 未结 5 1180
無奈伤痛
無奈伤痛 2020-12-18 07:05

I am getting the following error on a button click with gridview

 Server Error in \'/\' Application.
Invalid postback or callback argument.  Event validation         


        
5条回答
  •  不思量自难忘°
    2020-12-18 07:58

    I testing all above solutions and other posts but my problem isn't done.

    My problem was solved when cancel event at end of grid event at server side.

    This type of problem occurred when we using edit event of gridview. just add e.Cancel = true; at the end of event.

    protected void grdEducation_RowEditing(object sender, GridViewEditEventArgs e)
    {
      // do your processing ... 
    
      // at end     
      e.Cancel = true;
    }
    

提交回复
热议问题