首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

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

2012-09-11 
为什么执行上面的,下面的就没反应了呢string s 1, s2 2if (s 1)ClientScript.RegisterStart

为什么执行上面的,下面的就没反应了呢
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", 亲, 名字不能取一样

热点排行