By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,402 Members | 1,262 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,402 IT Pros & Developers. It's quick & easy.

How to access Internet Explorer page from external app

P: n/a
Is there a way in .Net or via interop (com etc.) for an external application
(a .net winform for example) to read the html contents (or the DOM) of a
running instance or internet explorer? I trying to write a timer app that
looks for the existance of an html tag and then does something.
Thanks,
Jim
Jul 26 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi Jim
yes you can read a contents of remote web page in .net using WebRequest and
WebResponse classes available under System.Net namesapce in .net f ramework
2.0
you can try with this code

WebRequest objRequest = WebRequest.Create("Your URL Here");
WebResponse objResponse = objReqiest.GetResponse();

Regards
Nitin Mittal


"Jim S" wrote:
Is there a way in .Net or via interop (com etc.) for an external application
(a .net winform for example) to read the html contents (or the DOM) of a
running instance or internet explorer? I trying to write a timer app that
looks for the existance of an html tag and then does something.
Thanks,
Jim
Jul 27 '06 #2

P: n/a
Delving into the lower sections of my brain (the dusty bit) I recall
fiddling with global windows hooks and windows messages. There will be no
native .net way of doing what your after but you may be able to hook into IE
and read its window contents using pInvoke.

Perhaps this can give you some insight into talking to IE. Its delphi but
the explanations good.
http://delphi.about.com/od/windowssh.../aa060303a.htm

also.
http://msdn.microsoft.com/msdnmag/is...0/cuttingedge/

What might though be easier may be to write a plugin for IE, and have it
talk via socket calls to your monitoring application if you can get it to
read the contents.
http://www.codeproject.com/csharp/dotnetbandobjects.asp

--
Regards

John Timney (MVP)

"Jim S" <Ji**@discussions.microsoft.comwrote in message
news:82**********************************@microsof t.com...
Is there a way in .Net or via interop (com etc.) for an external
application
(a .net winform for example) to read the html contents (or the DOM) of a
running instance or internet explorer? I trying to write a timer app that
looks for the existance of an html tag and then does something.
Thanks,
Jim

Jul 27 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.