Skip to content Skip to sidebar Skip to footer

How Can I Get The User Response Regarding Savefiledialog In Javascript?

The following code is implemented in Page_Load event to show SaveFileDialog to the user string targetFileName = Request.PhysicalApplicationPath + 'Reports\\TempReports\\FolderMaste

Solution 1:

You can't get the user response to SaveFileDialog as all file-events have been blocked for browser-javascript as it could be a very big security-hole ...

Solution 2:

I'm here again, as I got a solution for my second question.

For Response.End, call the HttpContext.Current.ApplicationInstance.CompleteRequest method instead of Response.End to bypass the code execution to the Application_EndRequest event.

Have look ...

Post a Comment for "How Can I Get The User Response Regarding Savefiledialog In Javascript?"