How do I click an ASP.NET webform's button whe

2019-08-31 18:47发布

问题:

I have a standard ASP.NET web form in a web page, and this page is hosted in a .NET Winform with a WebBrowser Control. Using c# how do I control the WebBrowser Control to submit the ASP.NET form? (eg somehow "clicking" on the button from the Winform?)

Update: to complicate things we have the ASP.NET validators which seem to make simple document.forms(0).submit() not work