.net 里消息框加什么能直接跳到别的页面

来源:百度知道 编辑:UC知道 时间:2024/06/25 19:28:34
Response.Write("<script>alert('添加成功!');????</script>");
问号处加什么能跳到另一个页面?
我记得是windows什么来着
以前还记得呢!时间长不用忘记了

Response.Write("<script>alert('添加成功!');location.href='http://www.qq.com';</script>");

应该是这样写的,代码如下:
Response.Write("<script>alert('添加成功!');window.open('WebForm2.aspx');</script>");

Response.Write("<script>alert('添加成功!')script>");
alert是单按钮的,有没有多按钮的?让客户端选择OK就这样,Cancel就那样???求教