Jump to content

C# and Jscript events


Recommended Posts

Hello

I want to develop an application in C# that displays html pgae in web browser control. Further i want my C# application to be notified of events that are occuring in html file (displayed in browser control).

i can do this with asp, but this requires configuration of IIS on client side (which is not permtted).

I have heared from some one that i can do this with JScript (that can run in html file).

Help me in solving this issue.

Link to comment
Share on other sites


Well after spending some time i got it.

The web browser control's event

BeforeNavigate2((object sender, AxSHDocVw.DWebBrowserEvents2_BeforeNavigate2Event e)

is called each time the browser is about to open a page.

if you want some different action you can catch this event and have processing of your choice.

cheers!!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...