|
Main » 2012 » November » 2 » Read html, text or content between HTML tag c#. .NET
0:03 AM Read html, text or content between HTML tag c#. .NET |
Read html, text or content between HTML tag c#. .NET
It is very easy to read content between HTML tag using c#. Steps for reading HTML content are as follows:
- Using namespace System.Xml
- Code:
XmlDocument a=new XmlDocument(); a.Load(Server.MapPath("~") + "//a.html"); XmlNode n = a.SelectSingleNode("/html/body"); TextBox1.Text = n.InnerXml; Note: - Be sure about case sensitivity of tag example (/HTML/BODY) in place of (/html/body).
Download source
|
Category: Programming |
Views: 2686 |
Added by: Admin
| Tags: Between, Content, .NET, Read text between html tag, html, csharp, Tag, C#
| Rating: 0.0/0 |
|
|
|