20110113 学习记录:.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>");
 

你可能感兴趣的:(.net)