.net弹出框并跳转

 

//在当前页弹出提示并打开页面(当前页打开)

        ClientScript.RegisterStartupScript(this.GetType(), "asd", "<script>alert('提交成功!');window.location.href='http://www.cnblogs.com/';</script>");
 

//在当前页弹出提示在新页面打开(新页面打开)

        ClientScript.RegisterStartupScript(this.GetType(), "asd", "<script>alert('提交成功!');window.open('http://www.cnblogs.com/');</script>");
posted @ 2010-05-20 10:47  GeliBear  Views(560)  Comments(1)    收藏  举报