开发者

parse html table using ASP.NET

开发者 https://www.devze.com 2022-12-29 08:19 出处:网络
I need to read a html page and开发者_JAVA技巧 parse the contents of a table in that. I am using ASP.NET.Could anyone tell me how to do this.

I need to read a html page and开发者_JAVA技巧 parse the contents of a table in that. I am using ASP.NET.Could anyone tell me how to do this. Thanks.


if you have a table name, you can do a Page.FindControl(table) Then loop using a foreach tablerow in table.


See http://htmlagilitypack.codeplex.com/

You can search SO for 'html agility' for ways to use it.

0

精彩评论

暂无评论...
验证码 换一张
取 消