C#中如何在一个页面显示提示信息后,在跳转到其它页面;

来源:百度知道 编辑:UC知道 时间:2024/07/01 07:00:33
我用的是Asp.net 2003,语言是C#

Response.Write("<script> alert('提示信息!');window.open('要跳转的页面','_parent');</script>");

protected void Page_Load(object sender, EventArgs e)
{
string js = "alert('警告!页面跳转');window.location.href='http://www.xrss.cn';";
this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "myjs", js,true);
}