Author: Ben Teo | Posted on: 7/15/2009 5:31:23 AM | Views : 275

Hi,
I use the following code to export data to an excel file:
            Response.Clear();
            Response.ContentType = "application/vnd.ms-excel";
            Response.AddHeader("Content-Disposition", "attachment;filename=test.xls");
            while (reader.Read())
            {
                string name = "";
                string email = "";
                if (reader[colN ...

Go to the complete details ...