Hi,
I need help for my program. Basically what I am trying to do is simple.
I called out the website in webBrowser, the website contain some fields like firstname and lastname.
When I pressed the button, the field will reflect the value that I want to post and when I pressed submit button it will reflect the change. But unfortunately it won't, the values are there in the website but when i pressed the submit button, the website still show no values were posted. I need to move my mouse and pointed to that field and pressed enter key the the value will reflected. My question : is there any way I can have the value auto reflected on the field (textbox).
private void button1_Click(object sender, EventArgs e)
{
webBrowser1.document.GetElementById("mx359").Focus();
webBrowser1.document.GetElementById("mx359").InnerText = "Mary";
webBrowser1.document.GetElementById("mx479").Focus();
webBrowser1.document.GetElementById("mx479").InnerText = "Simpson";
}
I need help for my program. Basically what I am trying to do is simple.
I called out the website in webBrowser, the website contain some fields like firstname and lastname.
When I pressed the button, the field will reflect the value that I want to post and when I pressed submit button it will reflect the change. But unfortunately it won't, the values are there in the website but when i pressed the submit button, the website still show no values were posted. I need to move my mouse and pointed to that field and pressed enter key the the value will reflected. My question : is there any way I can have the value auto reflected on the field (textbox).
private void button1_Click(object sender, EventArgs e)
{
webBrowser1.document.GetElementById("mx359").Focus();
webBrowser1.document.GetElementById("mx359").InnerText = "Mary";
webBrowser1.document.GetElementById("mx479").Focus();
webBrowser1.document.GetElementById("mx479").InnerText = "Simpson";
}