Link to home
Start Free TrialLog in
Avatar of Si-clone
Si-clone

asked on

C# and AxWebBrowser

Hello,

I am using AxWebBrowser to access web pages from within my application.  I have two problems facing me off at the moment.

1.  Is there a method to intercept a 404 response prior to redirection (if any)?
2.  If the URL specified to the AxWebBrowser includes a filedownload of any description, how do I intercept this? (I don't want to enable this!)

Is it me, or is there not a great deal of documentation on the AxWebBrowser?!

I'd appreciate any help that can be offered.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of buraksarica
buraksarica
Flag of Türkiye image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Si-clone
Si-clone

ASKER

Thanks for your reply.

I had previously tried the FileDownload event, but it didn't seem to fire.  However, on closer examination it appears that what I need to trap was a Java window offering to download a CAB file.  Maybe this is why the FileDownload event did not fire?!

One further question if I may :-)

Do you know the difference between events such as NewWindow2 and NewWindow3?

Thanks for your help.



NewWindow is an event on older versions of internet explorer that raises when a new window is to be created. NewWindow2 is the newer version of this event. It uses the same arguments but it works better. Because of this MSDN says "NewWindow is obsolete, use NewWindow2 instead". The NewWindow3 extends the event NewWindow2 and it supplies you with more information about the newly created window such as URL of the page opening the new window and URL being opened etc.

Hope this helps.
Burak SARICA
Thanks for your help