UpdatePanel进行ajax刷新时,弹窗

来源:互联网 发布:淘宝动态评分多久恢复 编辑:程序博客网 时间:2024/05/09 07:50

.net 下当通过UpdatePanel来进行ajax刷新的时候,想要弹窗时需这样写:

ScriptManager.RegisterStartupScript(this.UpdatePanel2, this.GetType(), "updateScript", "alert('弹窗提示');", true);


第一个参数要写成刷新的那个UpdatePanel

0 0
原创粉丝点击