TechSapphire Wednesday, 2024-07-17, 2:06 PM
Site menu
Login form
Play Games
  • Deep Freeze
  • Ice Slide
  • Gyroball
  • Fat Fish
  • Bush Royal Rampage
  • 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;


    • Be sure about case sensitivity of tag example (/HTML/BODY) in place of (/html/body).

    Download source

    Programming [27]
    Tips for programming
    Security [2]
    Security Tips
    Google [1]
    Use google faster then ever you use
    Project [14]
    HTML [2]
    Electronics [0]
    Data Structure [0]
    Database [16]
    SSRS [1]
    Sql Server Reporting Services
    Copyright MyCorp © 2024