[Mono-winforms-list] Writing data into a webbrowser problem

Euan MacInnes euan_macinnes at hotmail.com
Thu Apr 15 11:58:29 EDT 2010


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: velocedge at hotmail.com
> To: mono-winforms-list at lists.ximian.com
> 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 - Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20100415/295c8723/attachment-0001.html 


More information about the Mono-winforms-list mailing list