All this was possible in c. This worked fine when I ran the source code from my local machine. But When I deploy it in the site. It didnt work as I understood that the applicaiton is actually searching for the file path in ther server where the Website is deployed instead of the client system. As a quickfix , I thought of copying the excel file from the client system to the server , process the file and copy it back to the client system. I use jQuery to manage this. The following line of code should be added to whatever event handler you want to cause the download:.
You can't "copy it back to the client system". Thanks for the response. I need to copy the Excel contents to a sql table after some validaiton and processing. Which of these options work? It's a two stage process. Insults are not welcome. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question. Let's work to help developers, not make them feel stupid.
Related Questions. Excel file not saving in asp. How can I protect an existing excel file with password. Zip files within a folder including the source folder. How to copy an excel file and save as new excel file in C MS excel interop. Can not get txt file in folder. Automate download of file using. Download file in browser using base64 or binary string. Layout: fixed fluid.
Web03 2. Strip HTML. Encode HTML. Paste as-is. Code block. Quoted Text. Best guess. Create folder in your existing project. See below image for that. I'd like something like the following, but that will allow me to pass a web URL, and not a server file path.
I may have to end up building my file path from a config base path, and then append on the rest of the path, but hopefully I can do it this way instead. You could use HttpWebRequest to get the file and stream it back to the client. This allows you to get the file with a url. An example of this that I found but can't remember where to give credit is. I do this quite a bit and thought I could add a simpler answer. Sign up or log in Sign up using Google.
Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Who is building clouds for the independent developer? Exploding turkeys and how not to thaw your frozen bird: Top turkey questions Featured on Meta.
Now live: A fully responsive profile. Reducing the weight of our footer. Related Hot Network Questions. Question feed.
0コメント