读取HTML文件的内容 [英] Reading the content of HTML file
本文介绍了读取HTML文件的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用c#读取HTML文件并将其显示在datagridview中?
在文本框中,我将字体大小指定为5,以便它应读取大小为"5"的所有内容.并在buttonclick事件期间将其显示在datagridview中.
帮助我..
How can I read HTML file and display it in the datagridview using c#?
In a textbox, I have given font size as 5, so that it should read all the contents that are in the size="5" and display it in datagridview during buttonclick event..
Help me..
推荐答案
我的建议是,您使用HtmlAgilityPack库来解析HTML.至于实际的解析,我认为您将仅需精通它并学习如何使用HTMLAgilityPack来完成您的任务.
HtmlAgilityPack [ ^ ]
您可以通过简单的Google搜索找到讨论此库的示例和论坛.
My advice is that you use the HtmlAgilityPack library to parse the HTML. As for the actual parsing, I think you''re just going to have to muscle through it and learn how to use the HTMLAgilityPack in order to accomplish your task.
HtmlAgilityPack[^]
You can find examples and forums discussing this library with a simple google search.
这篇关于读取HTML文件的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文