How to get website root path from another class
<p>I have asp.net web site (use web forms). I have a class called <code>FileHandler</code> and inside that class I want to get the root path of the site.   </p>

<p>Normally I use<code>Server.MapPath("~")</code> to get the path inside a web page.  </p>

<p>Here I cannot use that because it is not a Page. How can I get the path of the web site?  </p>

<p><strong>EDIT</strong><br>
more about <code>FileHandler</code> class:
<code>FileHandler</code> is a static class and I am going to assign root path of the site to a satic variable.</p>
