是否有可能取消在ASP.NET code EventValidation和ViewState的? [英] Is it possible to decode EventValidation and ViewState in ASP.NET?

查看:123
本文介绍了是否有可能取消在ASP.NET code EventValidation和ViewState的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何去code中的ASP.NET EventValidation和ViewState的?

How to decode the ASP.NET EventValidation and ViewState?

推荐答案

我最近回答了类似的问题,<一个href=\"http://stackoverflow.com/questions/1050902/getting-values-from-viewstate-using-jquery/1051069#1051069\">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.

这篇关于是否有可能取消在ASP.NET code EventValidation和ViewState的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆