Hi guys,
I want to download an image from a cartoon website. and my app is WinForm, not WebForm.
So let's say that there is an image on the a.html.
Normally, when I click the previous page and am redirected to this page, there will be a image :"image is loading", let's say A.jpg, in the same block.
After 5 seconds, the real one, let's say B.jpg, will be displayed.
So what I got is only the caching image rather than the one, B.jpg, which I want.
So..... how should I do it?
Thanks in advance.
I am using HtmlAgilePack to retrieve the html content.
public static string getImageURL(string url)
{
string content1 = getPageContent(url);
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(content1);
HtmlNode img = doc.DocumentNode.DescendantNodes().SingleOrDefault<HtmlNode>(x => x.Id.Equals("showImg"));
string imgURL = img.GetAttributeValue("src", "");
return imgURL;
}
by doing it in this way, I got imgURL = "/src/caching.gif"
but the real one is other thing.