陋室铭
永远也不要停下学习的脚步(大道至简至易)

System.Web.HttpResponse   httpResponse   =   Page.Response;  
httpResponse.AppendHeader("Content-Disposition","attachment;filename="+HttpUtility.UrlEncode(fileName,System.Text.Encoding.UTF8));    
httpResponse.ContentEncoding=System.Text.Encoding.GetEncoding("BIG5");  
httpResponse.ContentType   ="application/ms-excel"; 

string title= "t1"+"\t"+"t2"+"\n";
response.write(title);
string content= "c1"+"\t"+"c2"+"\n";
response.write(content);
response.end();
posted on 2009-09-01 09:44  宏宇  阅读(718)  评论(0编辑  收藏  举报