【文件属性】:
文件名称:将Repeater控件数据导出到Excel或Word
文件大小:2KB
文件格式:TXT
更新时间:2017-05-05 08:10:53
Repeater Excel Word
//将控件Repeater中的数据导出到Excel或Word中
//将下列代码放入需要导出数据的.aspx文件对应的.cs文件中
//
private void Export(String FileType, String FileName)
{
Response.Clear();
Response.BufferOutput = true;
//设定输出字符集
Response.Charset = "GB2312";
网友评论
- 代码不详细,和度娘找到的一样。
- 可以使用。