手机
当前位置:查字典教程网 >编程开发 >asp.net教程 >GridView导出Excel常见的5种文本格式 原创
GridView导出Excel常见的5种文本格式 原创
摘要:1)文本:vnd.ms-excel.numberformat:@2)日期:vnd.ms-excel.numberformat:yyyy/mm...

1) 文本:vnd.ms-excel.numberformat:@

2) 日期:vnd.ms-excel.numberformat:yyyy/mm/dd

3) 数字:vnd.ms-excel.numberformat:#,##0.00

4) 货币:vnd.ms-excel.numberformat:¥#,##0.00

5) 百分比:vnd.ms-excel.numberformat: #0.00%

用法:在GridView的RowDataBound事件中加入代码e.Row.Cells[0].Attributes.Add("style", "vnd.ms-excel.numberformat:@");

【GridView导出Excel常见的5种文本格式 原创】相关文章:

iis的http 500内部服务器错误的解决

GridView选择性导出Excel解决方案

ASP.NET中集成百度编辑器UEditor

c# 调用WinRAR 实现文件压缩、文件解压WinRAR命令行参数不弹窗

asp.net 分页sql语句(结合aspnetpager)

ASP.NET 绑定DataSet中的多个表

ASP.NET抓取网页内容的实现方法

asp.net(c#)下Jmai去说明 使用与下载

asp.net使用ODP即oracle连接方式的的防注入登录验证程序

Asp.net怎么导出Excel/Csv文本格式数据?

精品推荐
分类导航