473,671 Members | 2,580 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

load HTML from file into HTMLDocument object?

Hello,

I want to load HTML file into HTMLDocument object. I don't want to use
webbrowser object or any asyncrohonous call to load HTML into this file.
Like if I call HTTPWebRequest to download the web page, I can somehow
redirect the received HTML in HTMLDocument object.

Any help how to do this.

Thanks & Regards,
Irfan
May 31 '06 #1
0 2686

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

Similar topics

3
14076
by: rosty | last post by:
I am loading a page in the constructor of my form to the Microsoft Web Browser component: string URI = "http://some_address.org"; object flags = 0; object targetframe = ""; object headers = ""; object post = ""; this.axWebBrowser1.Navigate(URI, ref flags, ref targetframe, ref post, ref headers);
2
1835
by: Dan | last post by:
I'd like to display some HTML code in a form using the axwebbrowser control, without having to create a temporary file to navigate to. I'm trying the following code (let's say that the web browser control is named wbb): object o = System.Reflection.Missing.Value; wbb.Navigate("about:blank", ref o, ref o, ref o, ref o); while (wbb == null) Application.DoEvents(); mshtml.HTMLDocument doc = (mshtml.HTMLDocument)wbb.Document;...
5
18378
by: Randy | last post by:
Hi, in C# I'm able to access a webbrowser control with the following code and print out all "tags": IHTMLDocument2 HTMLDocument = (IHTMLDocument2)browser.Document; IHTMLElementCollection links = HTMLDocument.links;
6
8388
by: J Williams | last post by:
I'm using axWebBrowser control and HTML DOM in a VB .NET Windows application to create a new HTML document by cloning nodes. The function below is called from the axWebBrowser1_DocumentComplete event using: Dim mNewDoc As mshtml.IHTMLDocument3 mNewDoc = NewDoc(axWebBrowser1.Document) Private Function NewDoc(ByVal mInputDoc As mshtml.IHTMLDocument3) As mshtml.IHTMLDocument3
6
2359
by: sylcheung | last post by:
Hi, How can I be notified when the document load is complet in JavaScript? I am referring to the whold document load is complete, mean all images/external files/frame/iframes have been loaded. I think there is a window.addEventListener() function but I am not sure which event to listen to. Thank you.
3
4914
by: thompson_38 | last post by:
I am currently working on a C# application that uses an axWebBrowser control which displays HTML pages. This is being done to reuse an existing web application which resides on a client's computer. I have created a resource .dll linking in all of the HTML, images and JavaScript pages in the old project. Using the res://mydll/homepage.htm, the home page loads into the web browser control (axWebBrowser.Navigate). This page has frameset,...
4
6049
by: adwooley2 | last post by:
Can't seem to find anything that works for me. I have a small bit of HTML that is stored in a string variable. I want to assign this string to an mshtml object (IHTMLDocument2 I believe), so that I can traverse the elements and attributes cleanly. Does anybody know of a way to load this string into an mshtml object? I would be beholdin' Tks, adwooley2
0
779
by: paragpdoke | last post by:
Hello ! I recently read about adding a reference to the VB Project of MS HTML Object library and tried out a click or two. It seems a nice way to automate IE actions. However, I have some doubts about determining the state of the HTMLDocument object. If one clicks on a link the href of which makes the entire DOM reload (like navigating to a different page for instance), the state is not "complete" . But, on the other hand, if my page has a...
5
10064
by: Andy B | last post by:
How do you load an html file into an XmlDocument?
0
8485
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
8403
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,...
0
8828
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
8605
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
8677
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
7446
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
4227
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
4417
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1816
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.