如何从STATIC方法调用HTML元素? [英] How to invoke HTML Element from STATIC method ?

查看:81
本文介绍了如何从STATIC方法调用HTML元素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,我在从STATIC方法调用HTML元素时遇到问题。我的HTML页面有一些文本框。我有脚本JavaScript来验证那些文本框。如果JavaScript返回true,那么它将从服务器端调用STATIC方法。直到这一点,我的代码运作良好。问题来了,我知道基本上我们无法从STATIC方法调用HTML元素。所以我所做的是我编写了一个NON STATIC方法,并使用对象从STATIC方法调用NON STATIC方法。但是我仍然无法从STATIC和NON STATIC方法调用HTML元素。请帮我介绍一下如何调用HTML元素。



在预先感谢:)

有一个美好的一天世界:)

Hi Friends, I have a problem in invoking HTML element from STATIC method. My HTML page has some textbox's. I have scripted JavaScript to validate those textbox's. If the JavaScript returns true, then it will call the STATIC method from server side. Till this point my code works good. Here comes the problem, I knew basically we cant invoke HTML element from STATIC method. So what I have done is I have scripted one NON STATIC method and called that NON STATIC method from STATIC method using object. But still I am not able to invoke HTML element from both STATIC and NON STATIC method. Please help me in how to invoke the HTML elements.

Thanks in Advance :)
Have a great day world :)

推荐答案

似乎这家伙也遇到了同样的问题。看看答案是否会对你有所帮助。



http://stackoverflow.com/questions/6984897/htmlelement-invoke-click-doesnt-work [ ^ ]
Seems this guy also had the same problems. See the answers whether it will help you.

http://stackoverflow.com/questions/6984897/htmlelement-invoke-click-doesnt-work[^]


这篇关于如何从STATIC方法调用HTML元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆