PC Review


Reply
Thread Tools Rate Thread

webBrowser.DocumentText and display images

 
 
=?Utf-8?B?c2ViYXBp?=
Guest
Posts: n/a
 
      28th Jun 2006
Hello!
I use DocumentText property to display my web content. If it contains image
then webBrowser doesn't display it.
How can I display images with using DocumentText property ?
Thanks for help.
Sebastian.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?QWxleCBZYWtobmluIFtNVlBd?=
Guest
Posts: n/a
 
      28th Jun 2006
If you're using the DocumentText property to assing some html to the
WebBrowser control, keep in mind that the controls at this point doesn't have
any clue of what the base url for the html was used. So if you want to show
images make sure that the src attribute has the full url value. If it is a
local file the url should look like that:

<img src='file://\Windows\msn.gif' />

and if it is a file on the web server it must have server name and a path i.e.

<img src='http://contoso.com/images/ms.gif' />


--
Alex Yakhnin, .NET CF MVP
www.intelliprog.com | www.opennetcf.org


"sebapi" wrote:

> Hello!
> I use DocumentText property to display my web content. If it contains image
> then webBrowser doesn't display it.
> How can I display images with using DocumentText property ?
> Thanks for help.
> Sebastian.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to WebBrowser.DocumentText with right encoding MaartyMan Microsoft C# .NET 5 31st Jul 2009 12:12 PM
Webbrowser documenttext in Windows CE 5 nickmachielse@gmail.com Microsoft Dot NET Compact Framework 1 25th Nov 2008 04:00 PM
WebBrowser DocumentText getting problem ... - Electronic.HR - Microsoft C# .NET 7 5th Jun 2007 11:58 PM
Webbrowser.DocumentText Kent Briggs Microsoft Dot NET Compact Framework 1 1st Jul 2006 11:04 AM
WebBrowser.DocumentText problem =?Utf-8?B?VGVlcmF2ZWUgU2lyaW5hcGFzYXdhc2RlZQ==?= Microsoft Dot NET Framework Forms 1 9th Dec 2005 11:20 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:13 PM.