Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument. Event validation is enabled using
in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
Try having EnableEventValidation = false for the page you are having this issue.
Further, make sure your Web.Config file is up with Ajax scripts.
Also, make sure - Scriptmanagers partial rendering is enabled
You could do as the error message suggests and use the
ClientScriptManager.RegisterForEventValidation
[
^
] method in order to register the postback or callback data for validation.
Or you could just set EnableEventValidation for the page to false.
Invalid call back and post back problem
When you are using griedview or datalist or repeater control then when you bind this control then you have to put this in if(!ispostback()){....}
protected
void
grdEducation_RowEditing(
object
sender, GridViewEditEventArgs e)
e.Cancel =
true
;
Read the question carefully.
Understand that English isn't everyone's first language so be lenient of bad
spelling and grammar.
If a question is poorly phrased then either ask for clarification, ignore it, or
edit the question
and fix the problem. Insults are not welcome.
Don't tell someone to read the manual. Chances are they have and don't get it.
Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.