| | |
Get the path from Downloading dialogbox???
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Feb 2009
Posts: 9
Reputation:
Solved Threads: 0
Hi everybody...
I have struck in a issue which is explained below. Pls resolve it...
I have an download option in my web application(ASP.Net with C#), which brings an dialogbox asking where to save the file. But i want to get the path of the file which is going to give by the user, because i have to start a new process to install the downloaded file by giving the path. I am using the following code to download the file, it works fine but i need to fetch the destination path of the file. Please help me out...
Thanks in advance...
This is my code.......
I have struck in a issue which is explained below. Pls resolve it...
I have an download option in my web application(ASP.Net with C#), which brings an dialogbox asking where to save the file. But i want to get the path of the file which is going to give by the user, because i have to start a new process to install the downloaded file by giving the path. I am using the following code to download the file, it works fine but i need to fetch the destination path of the file. Please help me out...
Thanks in advance...
This is my code.......
Response.ClearContent();
Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name);
Response.AddHeader("Content-Length", file.Length.ToString());
Response.ContentType = filepath;
Response.TransmitFile(file.FullName);
Response.Flush();
Response.End();•
•
Join Date: Jul 2009
Posts: 901
Reputation:
Solved Threads: 142
For security and other reasons, the browser's download dialog does not give you their local path information. You need to create a custom download dialog for your server's app. that allows the user to directly input the path you want to pass to your new process.
Is it possible for you to launch the new process with a default or blank path and that the process's saveas dialog can handle the details without you needing to actually know the path in your app?
Is it possible for you to launch the new process with a default or blank path and that the process's saveas dialog can handle the details without you needing to actually know the path in your app?
![]() |
Similar Threads
- vb:error 424 object required while downloading file (a pdf file location) to app.path (VB.NET)
- file path problem (ASP)
- How to configure GD (PHP)
- Downloading an mdb file using INET (Visual Basic 4 / 5 / 6)
- code for downloading as doc file (PHP)
- While I am Downloading ,One Dialogbox will open.When user will be saving file name... (ASP.NET)
- I want to create text file on clients local drive.Please help. (ASP.NET)
- Downloading a file (ASP.NET)
- Python path HELP (Python)
- Files Automatically Open on Download & Access Denied Messages Appear (Web Browsers)
Other Threads in the C# Forum
- Previous Thread: Java Applet In C#...
- Next Thread: "IBMDADB2" failed, error:E_FAIL(0X80004005)
| Thread Tools | Search this Thread |
.net access algorithm array asp.net barchart bitmap box broadcast c# check checkbox client combobox control conversion csharp custom database databaseconnection datagrid datagridview dataset datetime dbconnection degrees design development draganddrop drawing encryption enum event eventhandlers excel file firefox form format forms function gdi+ grantorrevokepermissionthroughc#.net httpwebrequest image index input install java label libraries list listbox loop mandelbrot marshalbyrefobject math mouseclick movingimage mysql mysql.data.client operator path photoshop picturebox pixelinversion post programming radians regex remote remoting resourcefile richtextbox server sleep socket sql statistics stream string study system.servicemodel table tcpclientchannel text textbox thread time timer update usercontrol validation visualstudio webbrowser windows winforms wpf wpfc# xml






