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. Visual Basic
  4. Problems in implementing WebBrowser control

Problems in implementing WebBrowser control

Scheduled Pinned Locked Moved Visual Basic
csharpxml
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.
  • A Offline
    A Offline
    Abhishek Joshi
    wrote on last edited by
    #1

    Hi I have developed an application using WebBrowser control under the .Net 2.0 framework which enables the user to navigate Web pages inside the form.. In this application the user visits web-sites in WebBrowser control. Whichever sites he is visiting I am recording all sites along with PostData, Url and Frame information in the XML file. Before navigating the following event is raised up and in that event I am saving the navigation information in XML file. Protected Friend Sub OnNavigatingExtended(ByVal Url As String, ByVal Frame As String, ByVal Postdata As Byte(), ByVal Headers As String, ByRef Cancel As Boolean) Dim e As WebBrowserNavigatingExtendedEventArgs = New WebBrowserNavigatingExtendedEventArgs(Url, Frame, Postdata, Headers) 'Save data to XML file if not in Replay mode. If recordFlag = True Then Dim xFunctions As New XMLFunctions stepNo = xFunctions.WriteRequest(stepNo, Url, Frame, e.PostdataToString(Postdata), Headers, Cancel.ToString) 'This is fucntion is written in another class and it stores the information into XML file. End If RaiseEvent NavigatingExtended(Me, e) Cancel = e.Cancel End Sub But unfortunately the above event is not raised in following scenarios and because of that I am not able to store these steps in XML.

    1. When user is downloading any file from the web-page displayed in the WebBrowser control.
    2. If user is visiting the pages and doing steps within same page,
      ie. He is navigating such that the page remains same only the data in frames of the page changes.

    I’ve kept option to replay the user’s visits. If user wants to see the pages he has visited then he can replay the websites using Replay button. But for above two cases it is not displaying those steps in replay. Please tell me what can be the remedy for these problems.

    Abhishek J

    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