Validation of viewstate MAC failed. Error while calling postback explicitly on click of anchor tag
-
Friday, April 27, 2012 1:02 PM
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.
All Replies
-
Monday, April 30, 2012 5:37 AMAdministrator
Hi Murtaza,
Please post your question on ASP.NET forum for help:
http://forums.asp.net/ -> http://forums.asp.net/1022.aspx/1?ASP+NET+AJAX+Ajax+Control+Toolkit
Pan Zhang Customer Support EPX Service Engineering Support Team
- Edited by Pan ZhangMicrosoft Contingent Staff, Administrator Monday, April 30, 2012 5:37 AM
- Proposed As Answer by Oliver MichalskiMicrosoft Community Contributor, Editor Monday, April 30, 2012 8:20 AM
- Marked As Answer by Ed Price - MSFTMicrosoft Employee, Owner Monday, May 07, 2012 6:18 PM