本文介绍了无法显示Model Pop UpExtender限制消息框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

if (grdReplicate.Rows[index].Cells[32].Text == "Y ")
 {
  messagetest("Cannot select already deffered records");
  return;
}







public void messagetest(string message)
    {
        ScriptManager.RegisterStartupScript(this.Page, base.GetType(), "Message", "javascript:alert(''" + message + "'')", true);
    }



但是在我的页面中,我使用了ModalPopupExtender来限制消息框的显示吗?
有任何解决方案吗?



But in my page I Have used ModalPopupExtender which is restricting the message box from getting displayed?
Any solutions?Need Urgently?

推荐答案

ScriptManager.RegisterStartupScript(this.Page, base.GetType(), "Message", "javascript:alert(''" + message + "'');", true);



我相信您的脚本会引发异常,并且因为在IE中选中了禁用脚本调试",因此您不会收到任何通知.

希望这会有所帮助.


谢谢,
Hemant



i believe your script is throwing an exception and because "Disable script debugging" is checked in IE you are not getting any notification.

Hope this will help.


Thanks,
Hemant


这篇关于无法显示Model Pop UpExtender限制消息框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-31 00:13