0

I have a function to export a GridView to an excel sheet using:

HttpContext.Current.Response.Write

I want to open excel sheet automatically after the downloading I have the function to open excel file and it works fine But the problem I am facing is where to call this function?

When calling function that exports grid view to excel sheet--> browser let user save the downloaded file in his hard disk and in same time code calling the function to open the excel sheet. It does a misleading and throws an exception that it cannot find this file name.

What I want now is to know where can I call the function to open the excel sheet after the user save it to their hard disk.

Draken
  • 3,134
  • 13
  • 34
  • 54

0 Answers0