ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", "window.close();", true);
ScriptManager.RegisterStartupScript(this, this.GetType(), "", "alert('删除文件栏目成功!')", true);
页面通过注册客户端脚本,成功实现文件栏目删除后的窗口关闭及提示功能。
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", "window.close();", true);
ScriptManager.RegisterStartupScript(this, this.GetType(), "", "alert('删除文件栏目成功!')", true);

被折叠的 条评论
为什么被折叠?