Go按钮不在c#windows应用程序中触发 [英] Go Button not firing in c# windows application

查看:79
本文介绍了Go按钮不在c#windows应用程序中触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我试图通过使用axwebbrowser的c#win应用程序点击一个网站的go按钮。按钮有





Hi ,
Am trying to click go button in one website through c# win application using axwebbrowser. the button is having


<td>
            <input type="image" name="ctl00$MultiProvider1$Imagebutton1" id="ctl00_MultiProvider1_Imagebutton1" src="../images/buttons/btn_go_ag.gif" alt="Go" style="border-style:None;height:17px;width:45px;border-width:0px;" />
        </td>





它没有触发onclick事件。我的问题是单击go按钮后页面没有加载,它是默认页面。所以有任何方法可以点击按钮。



it is not having onclick event to fire.What my problem is after clicking the go button the page is not loading and it going for the default page.so is there any way to click the button.

推荐答案

MultiProvider1
MultiProvider1


Imagebutton1 id = ctl00_MultiProvider1_Imagebutton1 src = ../ images / buttons / btn_go_ag.gif < span class =code-attribute> alt = Go style = border-style:None; height:17px; width:45px; border-width:0px; / >
< ; / td >
Imagebutton1" id="ctl00_MultiProvider1_Imagebutton1" src="../images/buttons/btn_go_ag.gif" alt="Go" style="border-style:None;height:17px;width:45px;border-width:0px;" /> </td>





没有触发onclick事件。点击go按钮后我的问题出现了没有加载,它将用于默认page.so是否有任何方法可以单击按钮。



it is not having onclick event to fire.What my problem is after clicking the go button the page is not loading and it going for the default page.so is there any way to click the button.


由于输入标记最有意义,如果它实际上被相应的表单标记包围你应该尝试调用表单的submit方法。如果您打算实际提交表格,那就是。



请参阅此示例:表单提交()方法演示 [ ^ ]



干杯!
Since an input tag makes the most sense if it is actually surrounded by a corresponding form tag you should rather try to call the submit method of the form. If it is your intend to actually submit the form, that is.

See this example: Form submit() Method Demonstration[^]

Cheers!


这篇关于Go按钮不在c#windows应用程序中触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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