Posted on: 10/25/2013 8:06:44 PM | Views : 1320

In an asp.net page, I would like to user HTML Agility Pack to extract the tables from the following link and insert them into a associating database tables.
http://www.hmsa.com/portal/provider/zav_pel.aa.COD.700.htm
I have the following function to get the html in a string so far. Please advise.
public static string GetWebPageHtmlFromURL(string url) { if (url == null) { url = "http://www.hmsa.com/portal/provider/zav_pel.aa.COD.700.htm"; } WebClient webClient = new WebClient(); string page = webClient.DownloadString(url); HtmlDocument doc = new HtmlDocument(); doc.LoadHtml(page); return doc.DocumentNode.OuterHtml; }

Go to the complete details ...