title: How would I check file.exist in vb?
body: <p>I have code to do this in asp:</p>
  
  <pre><code>@if (File.Exists(HttpServerUtility.MapPath("/Portfolio/@(Model.FileNumber)/Images/Large_@(Model.FileNumber)_1.jpg")) {}
  </code></pre>
  
  <p>I need to do this same thing, but in vb. It just checks if a file exists on the server. Sorry, I do not know really any asp or vb.</p>
  
  <p>EDIT
  Does this look right?</p>
  
  <pre><code>Dim imageFile As String = "/portfolio/" &amp; FileNumber.Text &amp; "/images/" &amp; FileNumber.Text &amp; "_1.jpg"
  
  If(File.Exists(imageFile) then
     DrawingLink1.Text = "portfolio/" &amp; FileNumber.Text &amp; "/images/" &amp; FileNumber.Text &amp; "_1.jpg"
  End if
  </code></pre>