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.
全部回复
-
2012年4月30日 5:37管理员
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
- 已编辑 Pan ZhangMicrosoft Contingent Staff, Administrator 2012年4月30日 5:37
- 已建议为答案 Oliver MichalskiMicrosoft Community Contributor, Editor 2012年4月30日 8:20
- 已标记为答案 Ed Price - MSFTMicrosoft Employee, Owner 2012年5月7日 18:18