im presently using two buttons in a form and a webbrowser control.
button1-Navigate to the page
button2-Fills user,pass and then submit
like this
private void button1_Click(object sender, EventArgs e)
{
webBrowser1.Navigate("http://www.xxxx.login.aspx");
}
private void button2_Click(object sender, EventArgs e)
{
webBrowser1.Document.GetElementById("username").InnerText = "aaaaa";
webBrowser1.Document.GetElementById("password").InnerText = "bbbbb";
webBrowser1.Document.GetElementById("login").InvokeMember("click");
and it works fine. but now im in a need to do this in a single button click, when i put those two codes under single button click event im getting exceptions.
how ca i do this in a single button click with webbrowser control.