编程软件vs05
TB1.Text的内容是网页的原代码
我通过DocumentText显示出来
webBrowser1.DocumentText=TB1.Text;
但是现在出现了一个问题,由于用webBrowser1.DocumentText,所以webBrowser1.Url.Host里面是about:blank,造成了一些相对路径错误..
有什么解决办法了呢?
说明一下webBrowser1.Url.Host是只读...所以无法改..
谁知道解决方法呢?
TB1.Text的内容是网页的原代码
我通过DocumentText显示出来
webBrowser1.DocumentText=TB1.Text;
但是现在出现了一个问题,由于用webBrowser1.DocumentText,所以webBrowser1.Url.Host里面是about:blank,造成了一些相对路径错误..
有什么解决办法了呢?
说明一下webBrowser1.Url.Host是只读...所以无法改..
谁知道解决方法呢?
webBrowser1.Navigate(new Uri(Environment.CurrentDirectory + "\\content.html"));
这样路径是正确的。
webBrowser1.DocumentText=
"<html><body>Please enter your name1:<br/>" +
"<input type='text' name='userName'/><br/>" +
"<a href='/temp.asp'>continue</a>" +
"</body></html>";里面有个temp.asp
但是用DocumentText显示的时候,路径是"about:blanktemp.asp"
怎么把about:blank变成我要的地址