This method is just to save the ASP.NET page as an HTML page just to change the suffix to XLC but Excel can read, and let me see that there is another way to export data and use template build.
Below is the code
The TWEB application of the county new ASP.NE will paste the code into it.
HTML page code
<% @ Page language = "c #" codebehind = "outexcel.aspx.cs" autoeventwireup = "false" inherits = "EMENG.EXAM.OUTPUTEXCEL"%>