Error in Gridview when deliting row

Posted by Saritha.rajeshkumar under C# on 5/28/2011 | Points: 10 | Views : 1041 | Status : [Member] | Replies : 3
hi

when i deleting the record in gridview iam getting the error

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: Prabhakar on: 5/28/2011 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi Saritha.rajeshkumar


say ur full requirement . . show ur code . . r u using editable gridview . .

Best Regard's
Prabhakar

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

Posted by: Vforvijay on: 5/30/2011 [Member] Starter | Points: 25

Up
0
Down
Refer this below link for delete a row form the grid view
http://vbdotnetaddict.blogspot.com/2011/02/groid-view-load-and-update-sql-data.html

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

Posted by: Vuyiswamb on: 5/30/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
in the page redirectives add this


EnableEventValidation="false"


Thank you for posting at Dotnetfunda
[Administrator]

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

Login to post response