Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Open file in their respective application

Open file in their respective application

Scheduled Pinned Locked Moved ASP.NET
helptutorial
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Shivan Nandan
    wrote on last edited by
    #1

    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

    A 1 Reply Last reply
    0
    • S Shivan Nandan

      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

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      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

      S 1 Reply Last reply
      0
      • A Abhijit Jana

        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

        S Offline
        S Offline
        Shivan Nandan
        wrote on last edited by
        #3

        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

        N 1 Reply Last reply
        0
        • S Shivan Nandan

          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

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups