回复不在Firefox for asp.net(C#)页面中工作 [英] Post back not working in Firefox for asp.net(C#) pages
问题描述
我遇到了mozilla firefox的问题。
I have a problem with mozilla firefox.
我正在使用asp.net语言开发一个网站,我在表单中有一个按钮。当我点击onclick属性按钮时,我正在调用一个函数和这个功能做回发。
I am developing a web site using asp.net language and I have a button in a form. when i clicked the button at onclick attributies i am calling a function and this funtion doing postback.
这个scenerio正在使用Chrome和互联网漏洞利用者。但它不适用于mozilla firefox。我在控制台中收到此错误:TypeError:访问严格模式调用函数被审查..
this scenerio is working chrome and internet exploerer. but it is not working at mozilla firefox. i am getting this error in console : TypeError: access to strict mode caller function is censored..
我的示例按钮是:
<input id="Button1" type="button" onclick="sampleFunc('sample');" value="button" />
我的样本函数是:
function sampleFunc(reqMessage)
{
__doPostBack('', reqMessage);
}
我在互联网上搜索。很多人都有这个问题,但没有任何解决方案。
I searched on internet. and many people have rhis problem but there is no any solution.
你有关于这个bug的任何解决方案(!)
Do you have any solution about this bug (!)
编辑1:我在jquery网站上找到了票证。根据勾选,thay修复了那个bug。但我应用了相同的解决方案,但我的错误仍在继续。 :(
EDIT 1: I have found a ticket on jquery web site. According to the ticked, thay fixed that bug. But i applied same solition but my bug is continue. :(
推荐答案
最后我找到了答案。
我是使用 alertfy javascript库获取弹出消息。此库正在使用使用严格表达式。
I am using alertfy javascript library for popup message. This Library is using "Use strict" expression.
我从这个库中删除了这个表达式,现在没有问题。我的代码适用于所有浏览器。
And i deleted this expression from this library, Now there is no problem. My code is working on all browsers.
这篇关于回复不在Firefox for asp.net(C#)页面中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!