Skip to content

Send Data from windows form to website's pop up windows

Jitender Singh

Asked May 23, 2013, 7:21 AM EDT3 answers
Share
LinkedInX
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

3 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Sunny  Sharma
    0
    Hi jitender,

    Use Window.Alert() method of the Document object to achieve this purpose. Below is the illustration of how will you do it:

    JavaScript
    button_click()
    {
            // ...
            // 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.
    0
  • 0
    No that's not what i want. You just answered how to show Message box. Please read question once again
    0
  • Sunny  Sharma
    0
    Please explain properly... not able to understand your exact problem then. Thanks.
    0