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.
- When user is downloading any file from the web-page displayed in the WebBrowser control.
- 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