Re: Writing data into a webbrowser problem

Euan MacInnes <[email protected]>
Newsgroups gmane.comp.gnome.winforms
Message-ID <[email protected]>
Use myBrowser.DocumentText

 

but you'll also need to put the full HTML:

 

string value = "this is a test";

myBrowser.DocumentText =  "<html><body>" + value + "</body></html>";

 

Then you can amend the CSS etc.. as well.

 

use myBrowser.BodyHtml to retrieve the inner html if you have it in edit mode.

 

Cheers,

 

Euan.
 
> Date: Thu, 15 Apr 2010 07:49:35 -0800
> From: [email protected]
> To: [email protected]
> Subject: [Mono-winforms-list] Writing data into a webbrowser problem
> 
> 
> I'm trying to write data into a webbrowser and can't seem to get it to work. 
> I'm using:
> 
> myBrowser.Document.Body.InnerHtml = "this is a test";
> 
> Nothing is showing up. The original url that I used was "about:blank" to
> set a blank browser screen.
> 
> Does anyone know how to create data inside the browser window?
> 
> Thanks,
> 
> sr
> -- 
> View this message in context: http://n4.nabble.com/Writing-data-into-a-webbrowser-problem-tp1901064p1901064.html
> Sent from the Mono - WinForms mailing list archive at Nabble.com.
> _______________________________________________
> Mono-winforms-list maillist - [email protected]
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list

_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.