473,786 Members | 2,380 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to access Internet Explorer page from external app

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
2 1610
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.Crea te("Your URL Here");
WebResponse objResponse = objReqiest.GetR esponse();

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
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**@discussio ns.microsoft.co mwrote in message
news:82******** *************** ***********@mic rosoft.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2427
by: J C-W | last post by:
I have a directory with files (of various formats) contained within a website which uses PHP to control user access via session variables. I would like to protect the directory from direct external linking (e.g. prevent people typing "http://www.mysite.com/protected-directory/file.doc" into the address bar for example), so that users must log on to the website first to gain access to them. Currently, I've used a .htaccess file, but this...
1
3272
by: alb120 | last post by:
I implementing Internet Printing; but it fails: http://w23ksv/printers/ gives error on EI Version 6.0.2800.1106 (XP) "Server object error 'ASP 0193 : 80020009' OnStartPage Failed /printers/ipp_util.inc, line 74 An error occurred in the OnStartPage method of an external object. "
6
4753
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much appreciated. Thanks in advance
0
2613
by: Bill Thom | last post by:
I have a Microsoft Access 2000 (9.0.4402 SR-1) database that I am attempting to launch from a hyperlink using Internet Explorer (Version 6.0.2800.1106). If I attempt to launch the database from the webpage with the hyperlink using Netscape, the database opens fine. If I attempt to launch the database from the webpage with the hyperlink using Internet Explorer, the database does not open. When I open Task Manager and check the PROCESS...
3
9498
by: C | last post by:
Re: Microsoft Knowledge Base Article - 870669 How to disable the ADODB.Stream object from Internet Explorer You may recently have heard of the vulnarability exposed by Internet Explorer as described in that article: "An ADO stream object contains methods for reading and writing binary files and text files. When an ADO stream object is combined with known security vulnerabilities in Internet Explorer, a Web site could execute scripts...
3
3495
by: Lyle Fairfield | last post by:
In a recent thread there has been discussion about Data Access Pages. It has been suggested that they are not permitted on many or most secure sites. Perhaps, that it is so, although I know of no site that has this prohibition, and I have uploaded DAPs to various sites and used them from those sites. I do not understand why any site manager would prohibit DAPs. To the best of my knowledge DAPs, as HTM files, are merely hosted on the...
1
1685
Raistlin Windblade
by: Raistlin Windblade | last post by:
I am really hoping someone can help me with this. I'm taking a college class online on Access 2003. There is a chapter about using Internet Explorer with an Access page. (provided by the teacher). However, everytime I try to open the page through Access into Internet Explorer like the tutorial asks me to do, ActiveX pops up a message not allowing the page to be opened. It gives you an option to bypass that, but when I do, IE crashes. ...
10
2412
by: Stefan Weber | last post by:
Hi, I'm trying to access the JavaScript code contained in a <scripttag via its "text" attribute. This works well, if the code is embedded in the HTML page. However, when the code is in an external file with the "src" attribute, it does not work anymore. Does anybody have an idea if there is any way (be it clean and simple or as a workaround) to access the code of external scripts as well? I read, that if there is something like
1
4852
by: avpkills2002 | last post by:
I seem to be getting this weird problem in Internet explorer. I have written a code for parsing a XML file and displaying the output. The code works perfectly fine with ffx(Firefox).However is not working in Internet Explorer.(I m using Internet Explorer 6.0). The code is as follows: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html...
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9492
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10108
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8988
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7510
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5532
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.