在代码隐藏页中实现执行某操作成功后,间隔几秒自动转向某个页面

  成功后  
  Response.Write("<meta   http-equiv='refresh'   content='2;   url=index.htm'>")

  单位是秒,url可以采用变量来代替,用字符串连加就可以了。

或者利用Response.Write输出一段JS脚本

window.setTimeout("window.location=’index.html’",2000);   单位是毫秒

原文地址:https://www.cnblogs.com/lavenderzh/p/1518869.html