如何从外部JS文件访问内容页面中的控件? [英] How to access a control in a content page from an external JS file?
本文介绍了如何从外部JS文件访问内容页面中的控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我对开发非常陌生.
如果我要问的是什么愚蠢的东西,请原谅我.
我的内容页面上有一个按钮控件和一个文本框控件.
在按钮的ClientClick上,我在单独的JS文件中调用JS函数.
该函数被触发.
现在,我需要在此函数内的文本框中获取值.
如何获得???
任何帮助将不胜感激.
在此先感谢..
I am very new to developing.
So kindly pardon me if I am asking anything really stupid.
I have a button control and a textbox control in my content page.
On ClientClick of button I am calling a JS function in a separate JS file.
The function is getting fired.
Now i need to get value in the textbox inside this function.
how to get???
Any help will be appreciated.
Thanks in advance..
推荐答案
看看^ ],这是一个与您的问题类似的问题.
Take a look here[^], its a question similar to yours.
嗨walterhevedeich,
感谢您的帮助.
我试过了
但是我仍然无法获得控制权.
hi walterhevedeich,
thanks for your help.
I tried that.
But still i am not getting that control.
这篇关于如何从外部JS文件访问内容页面中的控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文