Click here to Skip to main content
15,886,830 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I want to know what's the best way to get the inner content of an html page?
I'm using a c# class and I want to send the page's content as an email.
I have to mention that the html file is placed in the project's directory, so I don't want to download it form another server.

Thanks, from advance,
Ben
Posted

go through this link

this may helps you Here[^]
 
Share this answer
 
I suggest HTML agility pack because it tolerates syntax errors in xml or html pages :
http://htmlagilitypack.codeplex.com/[^]

Also it can save the changes you may apply to a HTML page.

Hope it helps.
 
Share this answer
 
Comments
Nicholas Butler 4-Jan-12 7:11am    
+5 for HTML agility pack
Amir Mahfoozi 4-Jan-12 7:15am    
Thanks a lot Nicholas :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900