DataGrid output to Excel format and processing of: Meng will come from: [Meng] will be the best of the world Date: 2004 at 11:11:20 on September 4 ----------- -------------------------------------------------- ------------------- When we import DataGrid into Excel, if you encounter a longer numeric string, such as the ID number, it will Excel is similar to a digital look, and converted into a scientific counting method, resulting in loss of data, the following method solves this problem, and examples how to make other formatting.
View example
OutputExcel.aspx
<% @ Page language = "c #" codebehind = "outputExcel.aspx.cs" autoeventwireup = "false" inherits = "EMENG.EXAM.OUTPUTEXCEL"%>
OutputExcel title> head>