asp.net 局部刷新以后怎么弹出一个对话框?
2012-11-29 09:13
239 查看
平时后台弹出对话框而不影响前台布局:
this.ClientScript.RegisterStartupScript(this.GetType(), "script", "<script type='text/javascript'>alert('查不到相关结果!');</script>");
要是前台有局部刷新以后上面的就没用了。得这么写了:
ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "OK", "alert('添加成功!');", true);
this.ClientScript.RegisterStartupScript(this.GetType(), "script", "<script type='text/javascript'>alert('查不到相关结果!');</script>");
要是前台有局部刷新以后上面的就没用了。得这么写了:
ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "OK", "alert('添加成功!');", true);
相关文章推荐
- ASP.NET弹出一个对话框
- asp.net 无刷新分页时无法弹出alert对话框的解决方法 (转)
- 漂亮的弹出对话框,Asp.net的一个控件
- ASP.NET弹出一个对话框
- ASP.NET弹出一个对话框
- ASP.NET弹出一个对话框
- asp.net弹出对话框C#函数【以后用会很方便】
- ASP.NET弹出一个对话框
- asp.net 点击一个按钮弹出对话框选择文件然后选择文件完成之后就自动上传文件 input(file)
- ASP.NET弹出一个对话框
- ASP.NET弹出一个对话框
- ASP.NET弹出一个对话框
- ASP.NET弹出一个对话框
- ASP.NET弹出一个对话框
- Asp.Net弹出一个先对话框然后跳转到另一个页面 小结
- ASP.NET弹出一个对话框
- ASP.NET弹出一个对话框
- ASp.NET弹出一个对话框
- ASP.NET弹出一个对话框
- C# ASP.NET中无刷新页面 弹出对话框,并且页面跳转