+ -
当前位置:首页 → 问答吧 → .cs后台代码,调用页面js来禁用ipnut button按钮

.cs后台代码,调用页面js来禁用ipnut button按钮

时间:2011-12-28

来源:互联网

这是我的代码,但是没有效果,求助!
页面:
  function clossbutton()
  {
  document.getElementById("BtnAdd").disabled=false;
  }

后台代码:
 Page.ClientScript.RegisterStartupScript(this.GetType(), "", "clossbutton()", true);

作者: c576161825   发布时间: 2011-12-28

我的按钮:
<input id="BtnAdd" type="button" onclick="getSelect();" style="width: 48px; height: 19px;
  background-image: url(../images/stu_table_baocun.jpg); border: 0px; float: right; cursor:hand;" />

作者: c576161825   发布时间: 2011-12-28

document.getElementById("BtnAdd").disabled = true;

作者: lvyichang   发布时间: 2011-12-28