Open file in their respective application
-
Dear All, I have an aspx page which contains link to different files created in different application such as .PDF, .doc, .txt, .xls etc. My requirement is to open each type of files in their respective application window. I tried System.Diagnostics.Process.Start method, but it does not works in client browser. Please help, if any one knows how to handle it.
Shivanandan C V
-
Dear All, I have an aspx page which contains link to different files created in different application such as .PDF, .doc, .txt, .xls etc. My requirement is to open each type of files in their respective application window. I tried System.Diagnostics.Process.Start method, but it does not works in client browser. Please help, if any one knows how to handle it.
Shivanandan C V
Shivan Nandan wrote:
I tried System.Diagnostics.Process.Start method, but it does not works in client browser.
Yes, It will execute on Server Only.
Shivan Nandan wrote:
I have an aspx page which contains link to different files created in different application such as .PDF, .doc, .txt, .xls etc. My requirement is to open each type of files in their respective application window.
Give Link with each of the file. So that user can able to download file from there. When user will Click on the link he should get message with "Open" , "Save" , "Cancel" Button . Which is the common scenario of web application.
cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net My Latest Article : IIS Remote Debugging
-
Shivan Nandan wrote:
I tried System.Diagnostics.Process.Start method, but it does not works in client browser.
Yes, It will execute on Server Only.
Shivan Nandan wrote:
I have an aspx page which contains link to different files created in different application such as .PDF, .doc, .txt, .xls etc. My requirement is to open each type of files in their respective application window.
Give Link with each of the file. So that user can able to download file from there. When user will Click on the link he should get message with "Open" , "Save" , "Cancel" Button . Which is the common scenario of web application.
cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net My Latest Article : IIS Remote Debugging
Thanks for the response. But it is opening the files in the browser window itself. e.g., if I click on .doc file link, it should launch MS-Word and the file is to be opened in that application[assumed that MS-Office is already installed]. The same case is with MS-Excel, PDF[PDF reader installed] etc.
Shivanandan C V
-
Thanks for the response. But it is opening the files in the browser window itself. e.g., if I click on .doc file link, it should launch MS-Word and the file is to be opened in that application[assumed that MS-Office is already installed]. The same case is with MS-Excel, PDF[PDF reader installed] etc.
Shivanandan C V
Shivan Nandan wrote:
But it is opening the files in the browser window itself.
This is browser dependent and you have zero control over how it displays.
Navaneeth How to use google | Ask smart questions