Problem with ObjectForScripting and WebBrowser element

  • Thread starter Thread starter Matthias Lee
  • Start date Start date
M

Matthias Lee

I create a WebBrowser element called 'Browser1' and link it to a page containing a simple JavaScript alert function and a button with onClick set to 'window.external.Testing()'.

I can call the JS function inside C#, but i cannot call from the button to a C# function.
I always get the error "Object doesn't support property or method"
Has anyone run into this?

I used the code on msdn, but had to change it since i was using WPF/XAML
 
Back
Top