想了好久,以前也用过,但是时间一长就忘记了。 看下面的语句:

 

       public static void MessageBoxShowThenRedirect(Page page,string messge, string url)
        {
            page.Response.Write("<script language=javascript>alert('"+messge+"');top.location='" + url+ "';</script>"); 
        }

一点技巧也没有,你直接拷贝回去用就是了。

 

 

相关文章:

  • 2022-12-23
  • 2021-09-27
  • 2021-09-18
  • 2022-12-23
  • 2022-12-23
  • 2021-07-28
  • 2022-12-23
  • 2021-10-22
猜你喜欢
  • 2022-12-23
  • 2021-10-07
  • 2022-12-23
  • 2021-10-26
  • 2021-09-12
  • 2022-12-23
  • 2021-12-06
相关资源
相似解决方案