Trying to convert ASPX file to XLS file.
File gets downloads with the data with row count (17K records) and actual data in DATAGRID is (20K records)
And If I manually copy the records from DATAGRID and paste it in Excel all records gets pasted all(20K records).
Please find the below code which executes to download excel(.xls) file.
Response.ClearHeaders()
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader("Content-Disposition", "attachment; filename=Test.xls")