ASP.NET how to get file name in specific folder on server
<p>I have this website which I am coding in ASP.NET - C#.</p>

<p>My problem is that I have image boxes, but the user can upload images with any name. Now each image box has its own folder, and at any point, there can be only one file in that folder, which is a .JPG file. </p>

<p>the path looks like this:</p>

<pre><code>Server.MapPath("img/home/1/here can be any jpg file with any name eg. whateverPic.jpg")
</code></pre>

<p>So, when uploading the file, the name can change at any time... then the problem comes when I want to display the image in the picture box.</p>

<p>All I want to do is to get the file name in folder img/home/1/.... and then I can just set the source of the picturebox to that name.</p>

<p>How can I get that filename in that specific folder?</p>
