Validation of viewstate MAC failed. Error while calling postback explicitly on click of anchor tag

已答复 Validation of viewstate MAC failed. Error while calling postback explicitly on click of anchor tag

  • 2012年4月27日 13:02
     
     

    I know this is the most common error, where i found numbers of solutions tried all but still I am facing the same error. 

    Here is my web,config

    <pages enableViewStateMac="false" enableEventValidation="false" enableViewState="false"></pages>

    I am using jQuery Ajax to post the data and save the information in my database. As well as in some cases I have used AjaxMethods using Ajax.dll

    to post the data to server without complete Postback.

    I place a Usercontrol which has Listview binding to it on Load using. ListView is also given DatakeyNames property which is a global control available throughout the website on all pages. 

    Now when i do postback using from one page to another (where i have a grid view with DatakeyNames property) and on click of this page also i do the same PostBack for thrid page. I get this error. But if without going to the page which contains GridView i do not get the error. So what will be my problem.

    Sorry for such horrible english I hope you will understand what i am trying to explain.

全部回复