views:

149

answers:

2

i need to block file download in webbrowser control in C#.net.. how can i do it?

A: 

Could you be more specific as to what you mean by file download? Opening an html web page is also a file download. You could use the Navigating event, inspect the target URL and if you classify it as a file download you could set the Cancel property.

Darin Dimitrov
when a prompt for file download appears when you navigate to a certain site. i want to prevent it.
Jepe d Hepe