locked
Suppress Script Error in WebBrowser control RRS feed

  • Question

  • Hi,
    I use a WebBrowser control to navigate to a html page which contains JavaScript. When I open this page in the IE browser no JavaScript error is shown and the page is displayed and functions perfectly.

    But when navigating to the same page with the WebBrowser control, a pop-up appears to inform about a Script error.
    I have tried to suppress the script error with the ScriptErrorsSuppressed property but now another pop-up comes up with the title "Visual Studio Just-In-Time Debugger" and proposes to debug...

    Why is the WebBrowser control not behaving like the 'normal' IE browser and how can I suppress these pop-ups??

    Thanks for any hint!

    Claudia
    Tuesday, February 27, 2007 1:47 PM

Answers

  • For the .NET 2.0 WebBrowser control, set the ScriptErrorsSuppressed property to True.
    Monday, May 7, 2007 8:11 PM

All replies

  • I have the exact same problem. Anybody, on a way to not get the dialogs?
    Monday, May 7, 2007 6:05 PM
  • For the .NET 2.0 WebBrowser control, set the ScriptErrorsSuppressed property to True.
    Monday, May 7, 2007 8:11 PM
  • ScriptErrorsSuppressed Property doesn't work as it is supposed to. It should suppress script errors only, but it suppresses any dialog box on the webbrowser control, such as login form. It seems to be a bug, which i am not sure if it has been already reported or not.
    Tuesday, June 12, 2007 4:36 PM