Hi,
For loading a page, you simply set the webView's Url property. For example, you can do:
Code: C#
webControl1.WebView.Url = "https://yoursite.com";
For anything has to do with things inside the page, you would use JavaScript. Anything inside the page lives inside the browser engine. That is a different "world" and you would use that world's language - JavaScript. For example, if you want to set a global JavaScript variable, the JavaScript code would be:
Code: JavaScript
window.someVariable = 1234;
If you wish to change the web page's background color to blue, you can use JavaScript code like this:
Code: C#
document.body.style.backgroundColor = "blue";
If you wish to set a textbox's value:
Code: JavaScript
document.getElementById("the_id_of_the_textbox").value = "123";
Note that we are not in a position to provide support on JavaScript code, these are just examples to show you the idea.
Once you have the correct JavaScript code, you would pass the code to the browser engine through WebView.EvalScript. So while the JavaScript code to set global variable someVariable to 1234 is
Code: JavaScript
window.someVariable = 1234;
The C# code would be:
Code: C#
webControl1.WebView.EvalScript("window.someVariable = 1234;");
If you wish to get the value of the variable, you would do:
Code: C#
int n = (int)webControl1.WebView.EvalScript("window.someVariable");
Note that this code assumes someVariable holds a integer value. If it holds another type of value (such as a string), the cast will fail in the above line.
So to sum it up, you write the JavaScript code to do whatever you need to do, then you use WebView.EvalScript to run it. You can find more information about this here:
https://www.essentialobjects.com/doc/webbrowser/advanced/jsHope this points you to the right direction.
Thanks!