我的项目的“关闭”按钮无法在Google Chrome中使用 [英] My Project's Close button is not working in Google chrome

查看:109
本文介绍了我的项目的“关闭”按钮无法在Google Chrome中使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,我有一个模态弹出窗口(AjaxToolkit)。在那个模态弹出窗口我保持关闭图像按钮和取消按钮,我保持onclick =btnClose_Click在点击事件内我保持modalpopup.Hide();.但它不工作在谷歌铬和它在IE中工作,Mozilla Fire Fox帮助我...



- 提前谢谢:)

In my Project i have a Modal popup(AjaxToolkit). In that Modal popup i kept Close Image button and Cancel button and i kept onclick="btnClose_Click" inside the click event i kept modalpopup.Hide();.But its not working in Google chrome and its working in IE, Mozilla Fire Fox Help me ...

-Thanks in advance :)

推荐答案

你无需明确添加'modalpopup .Hide();'在关闭按钮事件中。模态弹出窗口会在关闭时自动触发hide()函数。



如果添加,代码将通过递归调用自身进入循环,并且会发生超出范围异常的内存。从关闭按钮事件中删除'modalpopup.Hide();'然后尝试。
You need not explicitly add 'modalpopup.Hide();' inside the close button event. Modal popup automatically triggers the hide() function on close.

If added, code gets into loop by recursively calling itself and memory out of range exception would occur. Remove 'modalpopup.Hide();' from the close button event and try.


这篇关于我的项目的“关闭”按钮无法在Google Chrome中使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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