473,322 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Load HTML in WebBr from string

Hi,

Is there an alternative to an URI location when loading html into a
webBrowser control.

I have some html generated in a string. I would like to skip saving the
string to a file on disk and then loading it from disk into webbrowser with
its Navigate() method. Is there a direct (string -browser) method instead?.

Thanks.
Jesper, DK.

Aug 30 '06 #1
5 3046
Jesper,

You make me curious what are you doing.

wb.Navigate(http://windowssdk.msdn.microsoft.com...0x214wa.aspx);

This should be enough to show the page with the information about that.

I hope this helps,

Cor
"Jesper" <Je****@discussions.microsoft.comschreef in bericht
news:01**********************************@microsof t.com...
Hi,

Is there an alternative to an URI location when loading html into a
webBrowser control.

I have some html generated in a string. I would like to skip saving the
string to a file on disk and then loading it from disk into webbrowser
with
its Navigate() method. Is there a direct (string -browser) method
instead?.

Thanks.
Jesper, DK.

Aug 30 '06 #2
No, that didn't help.

Im building data output in html format like this

string src = "<html>.......</html>"

webBrowser.Load(src).

.... but no such functionality seems to exist. I have to save the string
first to disk and then load it into the browser using navigate... And I dont
want disk operations involved.

Any tips on how to avoid disk operations?

regards Jesper

"Cor Ligthert [MVP]" wrote:
Jesper,

You make me curious what are you doing.

wb.Navigate(http://windowssdk.msdn.microsoft.com...0x214wa.aspx);

This should be enough to show the page with the information about that.

I hope this helps,

Cor
"Jesper" <Je****@discussions.microsoft.comschreef in bericht
news:01**********************************@microsof t.com...
Hi,

Is there an alternative to an URI location when loading html into a
webBrowser control.

I have some html generated in a string. I would like to skip saving the
string to a file on disk and then loading it from disk into webbrowser
with
its Navigate() method. Is there a direct (string -browser) method
instead?.

Thanks.
Jesper, DK.


Aug 30 '06 #3
Jesper,

That functionality exist in the 2.0 webbrowser, I assume you talking about
that, because the old one has the name AxWebbrowser.

documenttext
http://msdn2.microsoft.com/en-us/lib...umenttext.aspx

I hope this helps,

Cor

"Jesper" <Je****@discussions.microsoft.comschreef in bericht
news:AD**********************************@microsof t.com...
No, that didn't help.

Im building data output in html format like this

string src = "<html>.......</html>"

webBrowser.Load(src).

... but no such functionality seems to exist. I have to save the string
first to disk and then load it into the browser using navigate... And I
dont
want disk operations involved.

Any tips on how to avoid disk operations?

regards Jesper

"Cor Ligthert [MVP]" wrote:
>Jesper,

You make me curious what are you doing.

wb.Navigate(http://windowssdk.msdn.microsoft.com...0x214wa.aspx);

This should be enough to show the page with the information about that.

I hope this helps,

Cor
"Jesper" <Je****@discussions.microsoft.comschreef in bericht
news:01**********************************@microso ft.com...
Hi,

Is there an alternative to an URI location when loading html into a
webBrowser control.

I have some html generated in a string. I would like to skip saving the
string to a file on disk and then loading it from disk into webbrowser
with
its Navigate() method. Is there a direct (string -browser) method
instead?.

Thanks.
Jesper, DK.



Aug 30 '06 #4

Hi,

You can use webbrowser.documentText property to assign the html content
to webbrowser document. Also you can use streaming to load html.

Best Regards

Aug 30 '06 #5

Hi,

You can use webbrowser.documentText property to assign the html content
to webbrowser document. Also you can use streaming to load html.

Best Regards,
Erman OLCA

Aug 30 '06 #6

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

Similar topics

3
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 = "";...
2
by: Mark Kamoski | last post by:
Hi-- I need a code sample of how to redirect from an ASP.NET page to a frames-based html page and specifying what should load in the destination's frames. Any ideas? (Even air-code is much...
1
by: Biva | last post by:
Hello, I have a drop down list control in a datagrid. I can't seem to populate the control. Here is what my code looks like: <EditItemTemplate> <asp:DropDownList ID= "ddlUser5" DataSource =...
2
by: Sam | last post by:
I have a custom control (MyTextBox - taken from Microsoft website) that implements the IPostBackDataHandler interface. It is added to the controls collection of a placeholder control during the...
26
by: Niggy | last post by:
I am trying to load a file from a dropdownlist, however I get a error saying a virtual path is required. An example selected value would be "../4900/myfile.doc". Any ideas - my code is. Dim...
12
by: Dean Slindee | last post by:
My project has a main form (frmMain, the startup object for the project) and several other "child" forms that are painted within a large panel on frmMain. In each form's Form_Load event, a Weak...
2
by: David Virgil Hobbs | last post by:
Loading text strings containing HTML code into an HTML parser in a Javascript/Jscript I would like to know, how one would go about loading a text string containing HTML code, so as to be able to...
4
by: Dick Sutton | last post by:
I am so close, yet oh so far! Here's the problem: I want to load a string variable that contains HTML into an instance of SHDocVw.InternetExplorer. Here's what I have so far: Function...
9
by: =?Utf-8?B?VGhvbWFzIFcuIEJyb3du?= | last post by:
"parez" wrote: Assembly.LoadWithPartialName does indeed work!! Now, why is this incredibly useful routine deprecated and we are instructed to use Assembly.Load instead which does not provide...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.