Invalid Viewstate, Invalid length for a Base-64 char array or string

不羁的心 提交于 2019-12-03 14:15:22
Amro

All credits go to @Aristos for providing his answer on another question: Click here

he provided three possibilities, my problem was that the page was reloading tripple times causing the viewstate to get corrupted.

I have a customized JQuery datepicker, and there was a javascript code to call an OnvalueChanged event, I was comparing two date values which were the same but had a different format, which caused the event to fire more than once somehow.

to debug this, put a breakpoint on the Page_Load event, and if it gets fired more than once, then start to remove some code/usercontrols, scripts until you catch the cause.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!