try:IHTMLDocument2 HTMLDocument =(IHTMLDocument2) axWebBrowser1.Document;
HTMLDocument.Body.InnerHtml = "xxxx";
HTMLDocument.Body.InnerHtml = "xxxx";
解决方案 »
- BindingSource.AddNew与Current的问题
- c#动态编译 能不能给动态编译的代码段中的一个数组赋值为 编译代码外的一个数组的值呢!
- 关于启动窗体的问题
- [MSN]使用C#如何导入MSN联系人
- 一组动态生成的Label控件显示投票数,为什么显示的票数不更新?
- 用.NET的WinForm如何实现三维的造型
- webBrowser如何加载本地资源网页
- 关于手工安装Windows Service的问题。
- c#写web服务端传递大数据给java客户端问题
- HttpWebRequese模拟登录网站,返回html显示"签名值不合法",求助!
- 明年想去大城市闯闯。。。大伙给点意见。。。
- 请大家帮一下,我明天项目就到期了,又遇到问题!!!
IHTMLElement body = (IHTMLElement)htmlDocument.body;body.innerHTML = "<html><body>hello world</body></html>";http://blog.monstuff.com/archives/000052.html
IHTMLElement body = (IHTMLElement)htmlDocument.body; string WebResult = body.innerHTML; //WebResult 就是你想要的 其实孟子E章大哥说的很对,我只是跟贴,不用给我分哈 我可没有骗分得意思,呵呵
IHTMLDocument2 htmlDocument = (IHTMLDocument2)wb.Document;
IHTMLElement body = (IHTMLElement)htmlDocument.body;string WebResult = body.innerHTML;
IHTMLDocument2 htmlDocument = (IHTMLDocument2)axWebBrowser1.Document;
IHTMLElement body = (IHTMLElement)htmlDocument.body;
body.innerHTML = "<html><body>hello world</body></html>";IHTMLElement body = (IHTMLElement)htmlDocument.body;这个句子出现错误:
未处理的“System.NullReferenceException”类型的异常出现在 WebBro.exe 中。其他信息: 未将对象引用设置到对象的实例。
object o = null;
axWebBrowser1.Navigate("http://google.com", ref o, ref o, ref o, ref o);
所以