I have an Template Folder in which i have an Excel Sheet. I want to extract data from database and export it to Excel Sheet. Every time i click Export a copy of the Excel sheet in Template folder should be made and the data should be exported to the copy of the excel sheet and the sheet with data should get downloaded. Can this be done in C# ASP.Net Web Application??
What I have tried:
I tried a lot of thing but i could get only download in grid format or the excel sheet in the template folder gets updated but instead data should go in copy of excel sheet and should get downloaded.