改成这样:string str="<script language='javascript'>alert('省局数据不能进行修改!');</script>";Page.RegisterStartupScript("dd",str); 提示成功后转到别的页面Response.Write("<script>window.alert('提示语句');window.location='abc.aspx'</script>");