使用了MasterPage or GridView中的模版列后前台获取ID的问题,可通过以下方式:

document.getElementById("ctl00$编辑区ID$控件ID");
document.getElementById("ctl00_编辑区ID_控件ID");
document.getElementById("<%=控件名ID.ClientID%>"); //推荐

 

http://edu.cnzz.cn/NewsInfo/20847.aspx

相关文章:

  • 2022-02-01
  • 2022-12-23
  • 2021-05-19
  • 2021-12-24
  • 2022-12-23
  • 2021-11-15
  • 2021-09-13
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-23
  • 2021-09-24
  • 2021-09-26
  • 2021-08-28
相关资源
相似解决方案