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

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

热度:910   发布时间:2011-12-20 22:26:40.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); 
  相关解决方案