DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Wed, 22 Aug 2007 21:33:36 -0700,    posted on: microsoft.public.dotnet.framework.windowsforms.controls        back       

Thread Index
  1    Dylan Nicholson


Setting WebBrowser.DocumentText - interprets as plaintext?   
Hello,

I have an odd problem that only occurs on one machine, running IE 6.0
(latest SP etc.) and Windows Server 2000, .NET 2.0 SP1, whereby
setting the DocumentText property sometimes causes the text to be
interpreted as plain text rather than HTML.  That is, after doing:

WebBrowser.DocumentText = new string(' ', 192) + "<html><body>Test</
body></html>"

then checking WebBrowser.DocumentText again, it's now

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8"></
HEAD>
<BODY><PRE>
 
<html><body>Test</body
></html></PRE></BODY></HTML>


If the initial space padding is only 191 characters, it behaves fine!

There's other cases without this padding where the problem still
occurs, but that's the simplest to explain.  I've tried upgrading
everything I can on the problem machine, but it appears to have the
latest of everything, granted that it's an old 2000 server machine.

Anyone seen anything like this before?

Dylan
Date:Wed, 22 Aug 2007 21:33:36 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us