当前位置: 代码迷 >> ASP.NET >> 为什么执行下面的,上面的就没反应了呢
  详细解决方案

为什么执行下面的,上面的就没反应了呢

热度:248   发布时间:2013-02-25 00:00:00.0
为什么执行上面的,下面的就没反应了呢
string s = "1", s2 = "2";
  if (s == "1")
  ClientScript.RegisterStartupScript(this.GetType(), "script", "checkzhang('check_yes.jpg',1);", true);
  if (s2 == "2")
ClientScript.RegisterStartupScript(this.GetType(), "script", "checkzhang('check_yes.jpg',1);", true);

下面的s2那里没有调用的,为什么呢,有解决办法吗,在线等。

------解决方案--------------------------------------------------------
"script", 亲, 名字不能取一样
  相关解决方案