473,799 Members | 3,209 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to: Access the Managed HTML Document Object Model


Hi,

I use, VS2005 C#

I have a Windows Forms UserControl hosted within Internet Explorer

According to MIcrosoft documentation:

http://msdn2.microsoft.com/en-us/lib.../ms171712.aspx
or
the local MSN (Installed with) VS2005.

....
You can access the HTML DOM representing the page on which your UserControl
is hosted in order to change the document's structure or open modal dialog
boxes, among many other possibilities.
To access DOM from a UserControl hosted in Internet Explorer:

1.Create your own custom derived class of the UserControl class. ....
2.Place the following code inside of your Load event handler for your
UserControl:
<<MISSING>><<MI SSING>><<MISSIN G>><<MISSING>>< <MISSING>>

the documentation is missing...!?

Can anyone tell me what to do?

Many Thanks,
Filippo

Mar 9 '06 #1
2 2131
Filippo,

The MSHTML namespace follows completely the HTML Document Object Model.

Be aware that noboby finds it pretty to use

Search yourself on MSDN for that, because you get an enormous amount of
answers.

I hope this helps,

Cor

"Filippo Bettinaglio" <Fi************ ****@discussion s.microsoft.com > schreef
in bericht news:04******** *************** ***********@mic rosoft.com...

Hi,

I use, VS2005 C#

I have a Windows Forms UserControl hosted within Internet Explorer

According to MIcrosoft documentation:

http://msdn2.microsoft.com/en-us/lib.../ms171712.aspx
or
the local MSN (Installed with) VS2005.

...
You can access the HTML DOM representing the page on which your
UserControl
is hosted in order to change the document's structure or open modal dialog
boxes, among many other possibilities.
To access DOM from a UserControl hosted in Internet Explorer:

1.Create your own custom derived class of the UserControl class. ....
2.Place the following code inside of your Load event handler for your
UserControl:
<<MISSING>><<MI SSING>><<MISSIN G>><<MISSING>>< <MISSING>>

the documentation is missing...!?

Can anyone tell me what to do?

Many Thanks,
Filippo

Mar 10 '06 #2

thanks for the replay,
however let me put it in this way.

VS2005 - C# I have developed a Windows form user control.
This control is embeded in a web page.

Which is the best way to access to some fields in the HTML page (<input
name="" type="text".... > from the usercontrol?
Many thanks,
Filippo

"Cor Ligthert [MVP]" wrote:
Filippo,

The MSHTML namespace follows completely the HTML Document Object Model.

Be aware that noboby finds it pretty to use

Search yourself on MSDN for that, because you get an enormous amount of
answers.

I hope this helps,

Cor

"Filippo Bettinaglio" <Fi************ ****@discussion s.microsoft.com > schreef
in bericht news:04******** *************** ***********@mic rosoft.com...

Hi,

I use, VS2005 C#

I have a Windows Forms UserControl hosted within Internet Explorer

According to MIcrosoft documentation:

http://msdn2.microsoft.com/en-us/lib.../ms171712.aspx
or
the local MSN (Installed with) VS2005.

...
You can access the HTML DOM representing the page on which your
UserControl
is hosted in order to change the document's structure or open modal dialog
boxes, among many other possibilities.
To access DOM from a UserControl hosted in Internet Explorer:

1.Create your own custom derived class of the UserControl class. ....
2.Place the following code inside of your Load event handler for your
UserControl:
<<MISSING>><<MI SSING>><<MISSIN G>><<MISSING>>< <MISSING>>

the documentation is missing...!?

Can anyone tell me what to do?

Many Thanks,
Filippo


Mar 10 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
5267
by: Jon Davis | last post by:
I recently learned how to do an <OBJECT> alternative to <IFRAME> in current browsers using: <object id="extendedhtml" type="text/html" data="otherpage.html" width="250" height="400"></object> My question is how do I access the document DOM of this object in Javascript? For example, "alert(extendedhtml.innerHTML);" doesn't work and produces an unknown error. I'd like to both read and write to the document's body element's innerHTML...
2
1439
by: Jinsong Liu | last post by:
Hello Group: Sorry for double post. I posted this question on the XML group. Then realized this is the group where the question should be posted, since I am using .NET. I have an object model representing a XML document. At the end of the process, a XML document will be generated based on the data hold by the object model. I can validate the XML (when it is being generate) against a DTD. Is that possible I can get access to the DTD and
6
1905
by: _BNC | last post by:
Here's the breakdown: I have an old C DLL that I want to access via C#. I'm doing this via an outer DLL that wraps the old C DLL in an unmanaged C++ class, which is in turn wrapped in a Managed C++ class. Both these unmanaged C++ and managed C++ classes are compiled into a single assembly (DLL) that is accessed by C#. <--> <-->
5
2693
by: Lyle Fairfield | last post by:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/callnetfrcom.asp The Joy of Interoperability Sometimes a revolution in programming forces you to abandon all that's come before. To take an extreme example, suppose you have been writing Visual Basic applications for years now. If you're like many developers, you will have built up a substantial inventory of code in that time. And if you've been following...
2
1900
by: Filippo Bettinaglio | last post by:
Hi, I use, VS2005 C# I have a Windows Forms UserControl hosted within Internet Explorer According to MIcrosoft documentation: http://msdn2.microsoft.com/en-us/library(d=robot)/ms171712.aspx or
0
1203
by: Jarod_24 | last post by:
I've tried the WebBrowser in the System.Windows.Forms namespace, but it dosen't work when you instanciate an object from a class. It needs a Form to live in to work. My application allready has the ability to parse html. It send webrequests, get the html, extracts links, detects <base href=""> tags, <iframe>, <frame> tags and so on. The only problem is when the html contain loops, document.write() calls stuff defined in the Document...
3
24091
by: cweeks | last post by:
I am using the Webbrowser control in VS 2005 C# Express to automate the navigation of pages on a partner's web site. The first page contains an <IFRAME> element: <iframe style='width:40; height:40'; align='center' marginwidth='0' marginheight='0' scrolling='no' frameborder='0' id='xyzlogin' name='xyzlogin' src='https://www.xyzcorp.com/accounts/ServiceLogin'> </iframe>
4
12451
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is this: can Access create the document and place it as an OLE object to the relevant table? Any help is greatly appreciated. Ricky
16
11137
by: Neil | last post by:
I posted a few days ago that it seems to me that the Access 2007 rich text feature does not support: a) full text justification; b) programmatic manipulation. I was hoping that someone might know one way or the other whether that was true or not, or could point me to an article or help text that would. What I have seen so far online and in Access 2007 help seems to confirm the above. But that (or at least (b)) seems incredible that it...
0
9688
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
10260
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10243
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
10030
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9078
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...
0
5590
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4146
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2941
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.