C# Code Snippets  C# Code Snippets
 C# Code Snippets  C# Code Snippets
 C# Code Snippets  C# Code Snippets
 C# Code Snippets  C# Code Snippets
Showing posts with label ASP. Show all posts
Showing posts with label ASP. Show all posts

Saturday, December 22, 2007

How to Suppress / Disable Script Errors in WebBrowser Control

Hi all

I am currently writing an application that uses the WebBrowser control to perform operations on web pages. Unfortunately I stumbled upon a very annoying problem, sometimes an Internet explorer script error window pops up and stops all execution until you click the OK button. I've searched the web for hours and the same answer came up:

it's easy (so easy, yeah...) just do this:

WebBrowser.Silent = true;

the problem is that WebBrowser does not have a property named silent!!!!!! Maybe it did, but no more! if you don't believe me take a a look at the MSDN.

What you should do is use

WebBrowser.ScriptErrorsSuppressed = true;

which does exists...

Hope this helps some frustrated people (like me).

Happy holidays

Amit

AddThis Social Bookmark Button

Sunday, December 9, 2007

Learn Visual Studio .Net

Hi Everyone!!!

This is my new blog in which i will Share all I know/hear about/find interesting about Application Development.

For starters i would like to introduce you to http://www.learnvisualstudio.net/ which is a web site that has over 500 Video tutorials about almost enything you can think of that is related to application development, C#, VB, ASP.NET, SQL, Visual Studio and much much more .
it's only 140$ for a lifetime subscription!!!

so check it out, they have some freebees that change from time to time.

Amit

AddThis Social Bookmark Button