Lets assume that I have retrieved page html using HttpWebRequest & StreamReader. Now I would like to cut one div from the loaded html and put it in literal on my asp.net page. I know that that div has css class content. How can I do it?
Lets assume that I have retrieved page html using HttpWebRequest & StreamReader . Now
Share
Use XPath to select the node something like this
HtmlNode node = doc.DocumentNode.SelectSingleNode(“//div[@class=’myClassName’]”);
Put the extracted node string in your page where you want.