一.javascript中获取服务器端控值件用value
1.用表单的elements集合获取控件值
theform=document .forms["form1"];
theform .elements["TextBox3"].value
2.用getElementById
document.getElementById ("TextBox1").value 
二.javascript实现click事
1.在page_load 事件中添加
Button1.Attributes["onclick"]="javascript:  函数名()"; 
Button1.Attributes.Add("onclick","javascript:getSum()");
2.在脚本中添加
OnClientClick="getSum();"

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-29
  • 2022-12-23
  • 2021-11-11
猜你喜欢
  • 2022-12-23
  • 2021-12-03
  • 2022-12-23
  • 2021-07-15
  • 2022-02-20
  • 2021-11-17
相关资源
相似解决方案