如何在c#中获取webbrowser控件中显示的页面标题? [英] How to get a title of a page displayed in webbrowser control in c# ?

查看:599
本文介绍了如何在c#中获取webbrowser控件中显示的页面标题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

任何人请帮我获取c#中webbrowser控件中显示的页面标题。标题需要以带有此webcontrol intit的windows形式显示在标签中我尝试使用HTMLTitleElementClass,但它没有返回任何内容。

然后我尝试使用DocumentTitle属性,该属性应该显示当前在WebBrowser控件中显示的文档的标题。但是运气不好......这也失败了。


感谢任何帮助。


干杯,

Jon

Hi All ,
Any one please help me in getting a title of a page displayed in webbrowser control in c# .The title needs to be displayed in lable in a windows form which has this webcontrol intit.I tried with HTMLTitleElementClass but it''s not returning anything.
Then I tried with DocumentTitle property which should display the title of the document currently displayed in the WebBrowser control. But Hard luck ... This also failed.

Any Help in this is appreciated.

Cheers,
Jon

推荐答案

这不起作用?
This did not work?
< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | Wrap | 行号



这不起作用?
This did not work?
展开 | 选择 | Wrap | 行号


是你确定文件有标题吗?
Are you sure the document HAS a title?


这篇关于如何在c#中获取webbrowser控件中显示的页面标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆