IE 8.0逃生关键问题Web窗体 [英] IE 8.0 Escape Key Issue Web Forms

查看:301
本文介绍了IE 8.0逃生关键问题Web窗体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的一个QA团队才发现下列事项:如果你打两次ESC当包含有控制更新面板里面,如果你点击任何东西,做回发一个页面上,你会得到一个System.ArgumentException :无效的回发或回调参数。事件验证使用支持[...]错误。

One of my QA Team just discovered the following: If you hit ESC twice when on a page containing an update panel with a control inside, if you click on anything else that does a postback, you'll get a System.ArgumentException: Invalid postback or callback argument. Event validation is enabled using [...] error.

我想知道更多关于ESC键的默认行为。而且可能会感兴趣的挂钩到事件发生这种情况时,火别的东西。

I would like to know more about the default behaviour of the ESC key. And might be interested in hooking up to the event to fire something else when that happens.

消息:Sys.WebForms.PageRequestManagerServerErrorException:无效的回发或回调参数。在一个页%@页EnableEventValidation =真%>;事件验证正在使用中配置或所述启用。为了安全起见,此功能验证参数回发或回调事件,从最初呈现这些事件的服务器控件。如果数据是有效的和预期,使用ClientScriptManager.RegisterForEventValidation方法,以便为验证注册回发或回调数据。

现在实际上是什么在我的网页的我的页面只是有以下组成部分。

Now Actually what is in my page My page just have following components


  1. .net4.0或.NET 3.5

  1. .net4.0 or .net 3.5

保护无效btnSubmit_OnClick(对象发件人,EventArgs五){}我没有在code后面!!!

protected void btnSubmit_OnClick(object sender, EventArgs e){} I have nothing in code behind!!!

您可以通过重复错误
一个。删除,事
湾运行您的网站在浏览器(IE8,兼容模式也失败了)

you can repeat the error by a. remove the "" thing b. run your website in browser (IE8, compatibility mode also fails)

按照下面仔细的步骤(你应该点击提交按钮两次,$ P $完成这整个测试用例后pssed Esc键四次)

follow the steps below carefully (you should have clicked the submit button twice and pressed Esc key four times after finishing this whole test case)

一个。点击文本框将焦点设置结果
湾在键盘的两倍preSS Esc键(我曾经尝试每个键preSS两秒,您可以尝试每个键preSS一小时)结果
C。点击提交按钮结果
ð。点击文本框将焦点设置回结果
即在您的键盘结果preSS Esc键两次
F。点击提交按钮

a. click on the textbox to set focus
b. press Esc key twice in your keyboard (i have tried two seconds per key press, you may try one hour per key press)
c. click on the submit button
d. click on the textbox to set focus back
e. press Esc key twice in your keyboard
f. click on the submit button

任何帮助将是必然AP preciated。

Any help will be surely appreciated.

推荐答案

如果我没有记错这种行为涉及到的跨站点脚本(XSS)验证

If I recall correctly this behavior is related to a Cross-site scripting (XSS) validation.

有一个是一个的方式来确认是否是因为XSS验证,请访问:

There is an a way to confirm if it is because of XSS Validation, go to:

工具 - > Internet选项 - >安全 - >自定义级别 - >滚动到列表的底部 - >单击禁用XSS筛选器

Tools -> Internet Options -> Security -> Custom Level -> Scroll To The Bottom of the List -> Click Disable XSS Filter

或者你可以尝试使用:

 <%@Page EnableEventValidation="false"... 

这两种功能是安全功能的意图,以避免code注射液。

Both features are security features with the intention to avoid code injection.

有其他职位描述在这里指的是同样的步骤类似的步骤,只是让你知道了:

There are other posts here describing similar steps referring to this same steps, just so you know:

<一个href=\"http://stackoverflow.com/questions/14869308/jquery-ajax-script-not-working-in-ie-on-second-click-but-working-in-ff-and-chrom\">JQuery-Ajax剧本不是在IE上的第二次点击工作,但在第二次点击在FF和Chrome工作

JQuery-Ajax script not working in ie on second click but working in FF and Chrome on second click

<一个href=\"http://stackoverflow.com/questions/228969/invalid-postback-or-callback-argument-event-validation-is-enabled-using-page\">Invalid回发或回调参数。事件验证使用支持'&LT;页面enableEventValidation =&QUOT;真&QUOT; /&GT;'

您可以尝试这样的事情来解决此问题:

You can try to something like this to work around this:

http://www.$c$cproject.com/Articles/18238/The-UpdateProgress-Control-of-ASP-NET-AJAX-Extensi

更新1


  • 您可以尝试的另一件事是:的EnablePartialRendering =假的asp:ScriptManager的

  • Another thing you can try is: EnablePartialRendering="false" to asp:ScriptManager

请确保您的网站是通过使用边缘用正确的兼容性渲染:

Make sure your site is rendering with the proper compatibility by using "edge":

<meta http-equiv="X-UA-Compatible" content="edge" />

如果没有上述作品,请尽量控制这样的异常处理程序:

If nothing above works, please try controlling the exception handler like this:

http://encosia.com/how-to-improve -aspnet-Ajax的错误处理/

这篇关于IE 8.0逃生关键问题Web窗体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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