在javascript中访问服务器端控件. [英] accessing server side controls in javascript.
本文介绍了在javascript中访问服务器端控件.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用javascript访问服务器端asp.net控件的不同方式是什么?
What are the DIFFERENT WAYS to access the server-side asp.net controls in javascript ?
推荐答案
document.getElementById(''<%= txtIsCreatePagerMessage.ClientID%>'')
问候,
shefeek
Hi,
document.getElementById(''<%=txtIsCreatePagerMessage.ClientID%>'')
regards,
shefeek
您可以使用document.getElementById(//control name)
方法访问javascript中的控件.
You can access the control in javascript by using document.getElementById(//control name)
mehod.
使用JQuery,
By using JQuery,
这篇关于在javascript中访问服务器端控件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文