asp.net 后台代码跳转页面前弹出提示框
2013-01-07 11:37
666 查看
asp.net 后台代码跳转页面前弹出提示框-C#后台提示后调转页面大全
1、Response.Write("<script>alert('查询语句执行出错!');window.location.href=DisplayData.aspx</script>");
2、Page.RegisterStartupScript("msg", "<script>alert('查询语句执行出错!');window.location.href='DisplayData.aspx'</script>");
一般后台弹出提示框,都是用Page.RegisterStartupScript,不用Response.Write的
3、ClientScript.RegisterStartupScript(this.GetType(), "", " <script lanuage=javascript> alert('');location.href='';</script>");
4、System.Web.HttpContext.Current.Response.Write(String.Format("<script language=\"javascript\">alert(\"{0}\");window.location.replace(\"{1}\")</script>", strMessage, strRedirectUrl));
5、ScriptManager.RegisterStartupScript(this, this.GetType(), "u1", "alert('内容!')", true);
6、Page.ClientScript.RegisterStartupScript(this.GetType(), "d", "alert('请先登录!');location='../login.aspx';", true);
相关文章推荐
- asp.net 后台代码跳转页面前弹出提示框
- asp.net 后台代码跳转页面前弹出提示框【C#后台提示后调转页面大全
- ASP.NET 弹出提示框,点击确定后跳转到另一个页面
- ASP.NET弹出提示点击确定之后再跳转页面的方法
- ASP.NET弹出提示点击确定之后再跳转页面的方法
- ASP.NET弹出提示点击确定之后再跳转页面的方法
- 一种基于自定义代码的asp.net网站首页根据IP自动跳转指定页面的方法!
- Asp.Net下载页面,并弹出下载提示框
- asp.net中页面延时跳转代码
- asp.net 页面右下角弹出类似QQ或MSN的消息提示
- Asp.net ajax实现任务提示页面的简单代码
- ASP.NET后台页面跳转
- 关于在右下脚弹出窗口javascript代码,并用ASP.NET在后台调用(原创)
- 在新窗口中打开页面 的asp.net后台代码
- ASP.NET Ajax实现弹出提示框,页面变灰不可点击
- ASP.NET自动生成页面后台代码
- ASP.NET 后台弹出确认提示问题
- js 弹出提示信息,并跳转指定页面代码分享
- 关于ASP.NET 中使用Ajax进行异步调用问题,前台参数无法跳转到后台,提示500 internal server error
- ASP.NET中实现弹出消息框后跳转至另一带参数页面(Javascript)