繁体   English   中英

显示确认框不起作用

[英]Showing confirmation box not working

我在使此javascript框出现问题,我认为我做错了,但无法弄清楚它是什么。 请原谅您之前没有使用Page.ClientScript。 基本上,我要显示此框,如果他们单击“确定”,它将继续处理我的逻辑,否则,如果他们单击“取消”,它将使它们保持在同一页面上

这就是我所拥有的。

Page.ClientScript.RegisterStartupScript(this.GetType(), 
"ConfirmBox", "Confirm('The numbers selected are not in the directory,
Do you wish to continue?');", true);

我将不胜感激任何帮助。 谢谢

Javascript区分大小写。
你的意思是confirm

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM