是否有可能取消在ASP.NET code EventValidation和ViewState的?
如何去code中的ASP.NET EventValidation和ViewState的?
How to decode the ASP.NET EventValidation and ViewState?
我最近回答了类似的问题,Getting使用JQuery从视图状态的值?。
I answered a similar question recently, Getting values from viewstate using JQuery?.
基本上,在默认情况下的ViewState
只是Base64编码恩codeD,这样你就可以去code那么它只要管理员尚未配置现场进行加密。从我的previous回答引用:
Basically, by default ViewState
is just Base64-encoded, so you can decode it as long as the administrator hasn't configured the site to encrypt it. Quoting from my previous answer:
如果你正在写的控制
你自己的消耗,你只需要
从的ViewState
阅读,你可以做
如此,但是我不会推荐它,除非
你找到一个良好的调试库
解析它。格式是位
毛毛(见 ViewState的:所有你想要的
知道更多详细信息)。
If you are writing the control for your own consumption and you only need to read from
ViewState
, you could do so, but I wouldn't recommend it unless you find a well-debugged library to parse it for you. The format is a bit hairy (see ViewState: All You Wanted to Know for more details).
该链接提供了一个非常全面和清晰的介绍的ViewState
。
That link provides an extremely thorough and clear introduction to ViewState
.
至于事件验证,我不能确定它是否是Base64编码恩codeD,或者如果它只是看起来像Base64的(我无法找到一个确凿的,权威的参考)。 这Rexiology文章虽然可能的帮助。
As for Event Validation, I'm unsure whether it's Base64-encoded or if it just looks like Base64 (I can't find a conclusive, authoritative reference). This Rexiology article might help though.