Am getting this error while trying to update the gridview !

Posted by .Netlearner under ASP.NET on 6/8/2012 | Points: 10 | Views : 1046 | Status : [Member] | Replies : 6
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.




Responses

Posted by: Rabbil on: 6/8/2012 [Member] Starter | Points: 25

Up
0
Down
Did you provided "EnableViewState="true"" in the grid view ??

"I cannot teach anybody anything. I can only make them think"~ Socrates
Thanks And Regards

.Netlearner, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: .Netlearner on: 6/8/2012 [Member] Starter | Points: 25

Up
0
Down
now the error has gone.But Gridview updating event is not fired ? i dont know why guide me

.Netlearner, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rabbil on: 6/8/2012 [Member] Starter | Points: 25

Up
0
Down
Then i think u can try with EnableEventValidation="true" or false inside your your page tag(at the top) in .aspx page...hope, it would work...

let me know further !!

"I cannot teach anybody anything. I can only make them think"~ Socrates
Thanks And Regards

.Netlearner, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: .Netlearner on: 6/8/2012 [Member] Starter | Points: 25

Up
0
Down
Thanks i vl try this

.Netlearner, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Meet1424 on: 6/9/2012 [Member] Starter | Points: 25

Up
0
Down
you can set EnableEventValidation="false" for this, but its not a good idea from security point of view !

.Netlearner, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Chikkanti on: 6/9/2012 [Member] Starter | Points: 25

Up
0
Down
hi see this
http://chikkanti.wordpress.com/2011/11/11/editupdatedelete-in-gridview-using-edm-with-linq/


chikkanti

.Netlearner, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response