How do I open a file using a variable/string?
<p>I'm just a beginner. I'm using ASP.NET / VB and I want to store some image filenames as strings. How do I open an image file when I have the path saved in the variable 'avatar'? For example: if I do...</p>

<pre><code>Dim avatar As String = "~/files/images/avatars/L01 copy.gif"
</code></pre>

<p>How do I open the image? Here's the line I have at the moment...</p>

<pre><code>&lt;asp:Image ID="Imageavatar" width="80px" runat="server" ImageUrl="~/files/images/avatars/L01 copy.gif" /&gt;
</code></pre>

<p>I want to replace the last part to be something like <code>ImageUrl=avatar</code></p>