客户端脚本。注册StartupSc ... [英] Client Script.Register StartupSc...
本文介绍了客户端脚本。注册StartupSc ...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Dears,
i有以下脚本,我想提醒消息并重定向
Dears,
i have the following script where i want to alert a message and redirect
ScriptManager.RegisterStartupScript(this, this.GetType(), "alert","alert(''Save Complete''); window.location=''AddMerchant.aspx'';", false);
问题是,当我点击IE浏览器按钮时,会再次显示警告信息。
如何避免弹出消息再次出现?
问候,
The problem is that when i click back on the IE browser button the alert message is displayed again.
how can i avoid the popup message to appear again?
Regards,
推荐答案
启动脚本总是在启动时运行。
尝试RegisterClientScript,但你必须在脚本中调用函数
A startup script is always going to run on startup.
Try RegisterClientScript, but you have to call the function in the script
这篇关于客户端脚本。注册StartupSc ...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文