仅在Safari浏览器的ViewState无效 [英] ViewState invalid only in Safari
问题描述
一个我维护的网站在很大程度上依赖于使用的ViewState
的(这不是我的code)。然而,在某些网页其中的ViewState
是多余的臃肿,Safari浏览器抛出一个视图状态MAC的验证失败
错误
One of the sites I maintain relies heavily on use of ViewState
(it isn't my code). However, on certain pages where the ViewState
is extra-bloated, Safari throws a "Validation of viewstate MAC failed"
error.
这似乎只发生在Safari浏览器。火狐,IE和Opera成功地在同一个场景中的所有负载。
This appears to only happen in Safari. Firefox, IE and Opera all load successfully in the same scenario.
推荐答案
我已经做了一些研究到这一点,虽然我不能完全肯定它的原因,我相信这是因为Safari浏览器没有返回完整的结果集(因此它裁剪)。
I've been doing a little research into this and whilst I'm not entirely sure its the cause I believe it is because Safari is not returning the full result set (hence cropping it).
我一直在兼与另一家开发商,发现第9频道以及其中建议利用了SQL状态服务来存储视图状态,避免回发的问题,还页面大小下面的帖子。
I have been in dicussion with another developer and found the following post on Channel 9 as well which recommends making use of the SQL State service to store the viewstate avoiding the postback issue and also page size.
<一个href="http://channel9.msdn.com/forums/TechOff/250549-ASPNET-ViewState-flawed-architecture/?CommentID=270477#263702" rel="nofollow">http://channel9.msdn.com/forums/TechOff/250549-ASPNET-ViewState-flawed-architecture/?CommentID=270477#263702
这看起来是最好的解决办法?
Does this seem like the best solution?
这篇关于仅在Safari浏览器的ViewState无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!