Note that the action now goes to "accepted.html". Put another html file called "accepted.html" into the same folder as form.html. When you open form.html in your browser and click "Accept", the static page accepted.html will be shown. (Here your webbrowser also acts as server for local files.)
So your question is probably not "How do I fire the click event of the submit button" but rather "How do I handle dynamic requests instead of serving static pages".
You want your webserver to intercept the request for the GET action 'test', run some C# to process it and show the results.
A good framework to do this is ASP.Net MVC.
Asked in February 2016Viewed 1,922 timesVoted 8Answered 1 times