"Tommy Shore" <to*********@163.com> wrote in message
news:ul**************@TK2MSFTNGP12.phx.gbl...
I need this:
I click a href such as http://localhost/down.aspx?nid=123 and in fact it
points to a file named 123.zip, I want to
get the file name "123.zip" before the downloading begins.
So, what should I do?
The browser control has an interface named DWebBrowser2. One of the events
on that interface is BeforeNavigate2 which fires just before the control
moves to a new URL. I _think_ (but I am not sure) that a Browser Helper
Object could be used to get access to this interface in IE so that you could
track IE's movements. Alternatively, you could host the browser control in
your own application.
Dino Esposito has written in MSJ or MIND or MSDN magazine on the topic. You
might want to search the web.
Regards,
Will