How to skip to check image is available on URL everytime windows store app?
<p>I am working on Windows store app for windows and tablet. I need to list the product. </p>

<p>I want to set one condition: If product image is not available on URL, then it should use default image.</p>

<p>Here is the code:</p>

<pre><code>//get product list by service call and bind to productList.
foreach(product item in productList)
{
    HttpWebRequest request = (HttpWebRequest)WebRequest.Create(new Uri(item.image.ToString()));
    bool imageexist = false;
    using (var response = (HttpWebResponse)(await Task&lt;WebResponse&gt;.Factory.FromAsync(request.BeginGetResponse, request.EndGetResponse, null)))
    {
        int imagelength = Convert.ToInt32(response.ContentLength);
        if (imagelength &gt; 0)
        {
            imageexist = true;
        }
        else
        {
            imageexist = false;
        }
    }

    if (item.image == "N/A" || imageexist == false)
    {
        item.image = "Images/NoDataImages/ico-no-orders.png";       //default image
    }
}
</code></pre>

<p>Here, product can be 100 or more. So, every time it call to check on server. </p>

<p>Is there any other way to check because it calls to check everytime? It consume times.</p>

<p>I have referred following links. But in all cases I need to call to check image exist everytime.</p>

<p>1- <a href="https://stackoverflow.com/questions/1639878/how-can-i-check-if-an-image-exists-at-http-someurl-myimage-jpg-in-c-asp-net">How can I check if an Image exists at http://someurl/myimage.jpg in C#/ASP.NET</a> </p>

<p>2- <a href="https://stackoverflow.com/questions/10812985/asp-net-check-if-imageurl-exists">asp.net check if imageURL exists</a></p>

<p>3- <a href="https://stackoverflow.com/questions/192085/test-to-see-if-an-image-exists-in-c-sharp">Test to see if an image exists in C#</a></p>

<p>Please suggest utilized way.</p>