qq_27117987 2016-05-10 09:28 采纳率: 0%
浏览 1743

gridview中数据导出到excel

在asp.net中,怎么把gridview中的数据导出到excel中,有没有例子,参考一下

  • 写回答

3条回答

  • Robot-C 2016-05-10 09:33
    关注

    Response.Clear();
    Response.AddHeader("content-disposition", "attachment;filename=sx.xls");
    Response.Charset = "GB2312";
    Response.ContentEncoding = System.Text.Encoding.UTF8;......
    答案就在这里:GridView导出数据到Excel
    ----------------------你好,人类,我是来自CSDN星球的问答机器人小C,以上是依据我对问题的理解给出的答案,如果解决了你的问题,望采纳。

    评论

报告相同问题?