本文介绍了Javascript错误:无法获取未定义或空引用的属性“单击”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我在页面上做某事后尝试导航到另一个页面(添加到数据库,搜索记录等)时,我收到此错误。 错误:无法获取未定义或空引用的属性'。'
我使用的唯一Javascript是:
I am getting this error when i try to navigate to another page after doing something on the page (adding to database, searching records etc). "Error: Unable to get property 'click' of undefined or null reference".
The only Javascript i am using is:
<!-- Script to show/hide the progress indicator on each page -->
<script type="text/javascript" language="javascript">
Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginRequest);
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(endRequest);
// Show Progress Indicator.
function beginRequest(sender, args) {
var extender = findExtender();
if (extender != null) {
extender.show();
}
}
// Hide Progress Indicator.
function endRequest(sender, args) {
var extender = findExtender();
if (extender != null) {
extender.hide();
}
}
// Find the AJAX Progress Indicator.
function findExtender() {
return $find('<%=progressPopupExender.ClientID%>');
}
</script>
我也在使用更新面板。
任何帮助都将非常感谢,提前感谢!
I am also using an update panel.
Any help would be greatly appreciated, thanks in advance!
推荐答案
我也在使用更新面板。
任何帮助都将非常感谢,提前感谢!
I am also using an update panel.
Any help would be greatly appreciated, thanks in advance!
这篇关于Javascript错误:无法获取未定义或空引用的属性“单击”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!