Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Request made to the server from Web Browser Control?

Request made to the server from Web Browser Control?

Scheduled Pinned Locked Moved C#
helpadobesysadmintutorialquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Khoramdin
    wrote on last edited by
    #1

    Hello everyone, I am working on hooking to a Web Browser Control in my Windows Application. For example the following code is used to display the typed password or get the web address of the site.

    public void OnBeforeNavigate2(object pDisp, ref object URL, ref object Flags, ref object TargetFrameName, ref object PostData, ref object Headers, ref bool Cancel)
    {
    document = (HTMLDocument)webBrowser.Document;

            foreach (IHTMLInputElement tempElement in document.getElementsByTagName("INPUT"))
            {
                if (tempElement.type.ToLower() == "password" && tempElement.value.ToString() != "")
                {
                    MessageBox.Show("You typed '" + tempElement.value + "' for your Password");
                }
            }
        }
    

    .
    .
    .
    public void OnDocumentComplete(object pDisp, ref object URL)
    {
    MessageBox.Show(URL.ToString());
    }

    The problem is that not all website Navagate from one page to another page and eventhough requests are still made to the server but there no navagation to a new URL address. For example when I get to site build in Flash. Can someone tell me how I can monitor the request made to the server? Thank you for your help. Khoramdin -- modified at 13:11 Sunday 25th November, 2007

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups