create excel in ASP.NET
<p>I'm working on an ASP.NET web projec using VS2010,C#, I want my users to get excel file output from table reports, I know how to create CSV files but I'm going to create EXCEL files, for example a button that when clicked, enables user to download table data in EXCEL format, also I'm going to write some unicode text (persian, farsi language) into my excel, what are my options? currently I use following code to generate CSV file:</p>

<pre><code>            Response.Clear();
        Response.Buffer = true;
        Response.AddHeader("content-disposition", "attachment;filename=" + "db" + ".csv");
        Response.Charset = "";
        Response.ContentType = "application/text";

        StringBuilder sb = new StringBuilder();
        sb.Clear();

        //append new line
        sb.Append("\r\n");

        for (int i = 0; i &lt; tblDatabase.Rows.Count; i++)
        {
            //add separator
            for (int j = 0; j &lt; tblDatabase.Rows[0].Cells.Count; j++)
                sb.Append(Table3.Rows[i].Cells[j].Text + ",");
            //append new line
            sb.Append("\r\n");
        }
        Response.Output.Write(sb.ToString());
        Response.Flush();
        Response.End();
</code></pre>
