I'm using vs 2010 & i'm working on windows form in which I've 2 text boxes, 1 button, 1 web browser control & i want whenever i click on that button, the data that entered in 2 text boxes should be transferred to the website's pop up window like i want enter data on 192.168.1.1 its username & password fields & should check whether entered data is correct or not. How can i get the name of that pop up window ? how can i do that ?
Sorry for my bad english
Loading
Sunny SharmaPosted May 24, 2013, 9:48 AM
Jitender SinghPosted May 24, 2013, 9:00 AM
Sunny SharmaPosted May 24, 2013, 1:42 AM
Use Window.Alert() method of the Document object to achieve this purpose. Below is the illustration of how will you do it:
{
// ...
// Manipulation code goes here...
//...
WebBrowser1.Document.Window.Alert("Authentication Successful");
}
I'm sure this will help you.
Don;t forget to accept this as answer if it helps!
Thanks.