当前位置: 代码迷 >> Web Service >> this.ClientScript.RegisterStartupScript(GetType(), "" "alert('平添新商品失败^⌒^!')" t
  详细解决方案

this.ClientScript.RegisterStartupScript(GetType(), "" "alert('平添新商品失败^⌒^!')" t

热度:514   发布时间:2016-05-02 03:07:42.0
this.ClientScript.RegisterStartupScript(GetType(), "", "alert('添加新商品失败^⌒^!')", t
this.ClientScript.RegisterStartupScript(GetType(), "", "alert('添加新商品失败^⌒^!')", true);
Response.Redirect("Goods_Add.aspx");
在添加商品的时候,只执行了下面一句。上面一句被覆盖。。。不提示。有没什么办法让他提示。什么方法都行。。。急。。。

------解决方案--------------------
C# code
  this.ClientScript.RegisterStartupScript(GetType(), "", "alert('添加新商品失败^⌒^!');window.location.href='Goods_Add.aspx';", true);
  相关解决方案