I have a strange task. I need to load a webpage inside an iframe. And regardless of the text that I select inside the iframe, I need to get this because of the iframe. I am not allowed to use javascript. Is there a way to do this in asp.net c #?
I agree that this is a strange task. I personally avoided situations like this, however, if this is what you need to do, this is how I will refer to it.
URL- iframe, -,
WebClient webClient = new WebClient(); byte[] reqHTML; reqHTML = webClient.DownloadData("http://www.urltothesiteyouwant.com/path/"); UTF8Encoding objUTF8 = new UTF8Encoding(); string htmlOfSite = objUTF8.GetString(reqHTML);
Html Agility pack , .
, , . , , , , , , ..
.