【发布时间】:2015-05-04 08:16:34
【问题描述】:
我一直在尝试使用下面的代码执行但没有显示消息框并且选项卡也没有关闭。
ScriptManager.RegisterStartupScript(this, this.GetType(), "Messagebox", "alert('Record Deleted successfully.Note: This tab is now getting close');", true);
所以我只是从上面的代码中删除“警报”代码,然后它开始执行并关闭选项卡。但是我也想显示通知消息框怎么办?
ScriptManager.RegisterStartupScript(this, this.GetType(), "Messagebox", "window.close();", true);
【问题讨论】:
标签: c#