如何实现提示信息点确定后再跳转?
foxd 2009-02-03 12:10:03 protected void btn_Submit_Click(object sender, EventArgs e) //提交
{
string s = "审核提交成功!";
Response.Write("<script language=javascript>alert('" + s + "')</script>");
Response.Redirect("~/app/Apply_AppList.aspx");
}
以上代码的本意是想先弹出个信息框,待用户点击了"确定"按钮后再跳转至Apply_AppList.aspx页面,然而实际运行是并不弹出信息框,而是直接跳转了。只有去掉Response.Redirect("~/app/Apply_AppList.aspx");这一句才能弹出信息框来。
请问这问题如何解决?谢谢!