Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidati

Posted by Vanchi050585 under ASP.NET on 5/10/2011 | Points: 10 | Views : 2066 | Status : [Member] | Replies : 1
hi Friends,

when i click the Gridview page index changing, The error displayed in my application like below:

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.

But all the pages are in master page only.

Anybody tell the solution for this


Thanks in Advance
tvn

Thanks
tvn



Responses

Posted by: Prabhakar on: 5/10/2011 [Member] [MVP] Starter | Points: 25

Up
0
Down


i think u not write code in Page Indexing event on page . . on pageindexing u want rebind ur gridview

  protected void gvOrders_PageIndexChanging(object sender, GridViewPageEventArgs e)

{
gvOrders.PageIndex = e.NewPageIndex;
BindDataViews();
}




Best Regard's
Prabhakar

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

Login to post response