Get number of pictures using URL and Directory.GetFiles
<p>I want to get the number of pictures that is in a folder on a website. But I can't find a way to do it.</p>

<p>I have tried to use </p>

<pre><code>string a = Request.QueryString["nr"];
string[] filePaths = Directory.GetFiles(@"URL" + a, a + "_profil*");
</code></pre>

<p>But it doesn't work. I get the error:</p>

<p>Exception Details: System.ArgumentException: URI formats are not supported.</p>
