public void Alert(string str_Message)
        {
            ClientScriptManager scriptManager =((Page)System.Web.HttpContext.Current.Handler).ClientScript;
            scriptManager.RegisterStartupScript(typeof(string), "", "alert('" + str_Message + "');", true);
        }
public void Alert(string str_Message, string redirect)
        {
            ClientScriptManager scriptManager =((Page)System.Web.HttpContext.Current.Handler).ClientScript;
            scriptManager.RegisterStartupScript(typeof(string), "", "alert('" + str_Message + "');self.location='"+redirect+"'", true);
        }

相关文章:

  • 2021-12-01
  • 2022-01-04
  • 2021-06-14
  • 2022-02-03
猜你喜欢
  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
相关资源
相似解决方案