Is it possible Server.MapPath anywhere else bau in the page class?
<p>I've been using the same method called <strong>CheckIfImageExiste(string virtualPath, string finename)</strong> on 3 pages now because the method contains the method <strong>Server.MapPath</strong>.</p>

<p>The method is supposed to receive a virtual path and image file's name and check if the the image is in the right folder. So when the method receive the parameter, it needs to translate it into a physical path.</p>

<p>in a code behind, I can do something like:</p>

<p><code>string physicalPath = Server.MapPath(virtualPath);</code></p>

<p>But, if I decide to move <strong>CheckIfImageExiste()</strong> to another class so that it can be shared by all 3 classes, how can I define <strong>Server.MapPath(virtualPath)</strong> in the new class? I mean, what are the references? </p>

<p>Thanks for helping</p>
