i made csv file on the server - how i can let the client to download this file?
<p>i have made csv on the server like this:</p>

<pre><code>string Expath = @"d:\A.csv";
    protected void Button3_Click(object sender, EventArgs e)
    {
        FileStream FS = null;
        StreamWriter SW = null;
        try
        {
            FS = new FileStream(Expath, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.ReadWrite);
            SW = new StreamWriter(FS, Encoding.Default);
            SW.WriteLine("Test");
            SW.WriteLine("1,2,3,4,5");
        }
        catch { }
        finally
        {
            if (SW != null)
            {
                SW.Close();
                FS.Close();
            }
        }
    }
</code></pre>

<p>is it correct to make this file on <code>d:</code> on the server ? if not where is better to place hem ?</p>

<p>how do to that the client can download this file after he made it ? (asp.net C#)</p>

<p>thank in advance</p>
