Click here to Skip to main content
16,018,294 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using update panel in that update i use one gridview
In gridview there is button.
On click event of this button it gives me following error

"Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> 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."

I need the solution
Posted
Updated 5-Jul-11 20:51pm
v2

try to find out in the following way

Adding an Update Panel Trigger[^]
 
Share this answer
 
Make the EnableEventValidation = True in Page Directives.
 
Share this answer
 
So, read the error message, and do what it says. Did you try that ?
 
Share this answer
 
 
Share this answer
 
Comments
Member 7959293 6-Jul-11 3:21am    
thanks it solves the problem
by properties EnableEventValidation="false" ValidateRequest="false"
Toniyo Jackson 6-Jul-11 3:25am    
If it helps vote and accept the answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900