So basically there is a made html form with a button, it doesnt have a ID, but it has Input Class. I want for C# to click the button in webbrowser when I click the button in C# form.
If it had an ID I could do that by using this: `
private void button1_Click(object sender, EventArgs e)
{
webBrowser1.Document.GetElementById("submit").InvokeMember("click");
}
But how to do that if thers no id, just class?
note: I don’t have access to the html
form document.
Using jQuery it’s as simple as:
YourButton is the ID of the server side button to be clicked when the button with yourclass is clicked.