Getting system Mydocument path using C#.net(Web based Application)
<p>Am using C#.net(Web based) and  Am trying  to get Mydocument file path using following code </p>

<pre><code>    Label1.Text = System.Environment.GetEnvironmentVariable("USERPROFILE") +"\\My Documents\\";
                 or
     Label1.Text = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
</code></pre>

<p>while running  using  IDE .i got correct mydocument path . if i host my application i got different path rather getting mydocument path .</p>

<p>Please help me to find solution </p>

<p>Regrads,
ash</p>
