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. General Programming
  3. C#
  4. I want to open windows application from image button click of web page.

I want to open windows application from image button click of web page.

Scheduled Pinned Locked Moved C#
9 Posts 2 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.
  • A Offline
    A Offline
    AtulRane
    wrote on last edited by
    #1

    I want to open windows application from image button click of web page. I am using System.Diagonistic.Process.Start("exe path of local machine"); But it is throwing exception related to process and thread.

    W 1 Reply Last reply
    0
    • A AtulRane

      I want to open windows application from image button click of web page. I am using System.Diagonistic.Process.Start("exe path of local machine"); But it is throwing exception related to process and thread.

      W Offline
      W Offline
      WillemM
      wrote on last edited by
      #2

      It is not possible to open an application from within an asp.net website. The main reason for this is security and secondly, you simply can't access the client machine as the asp.net webpage codebehind runs on the server. What are you trying to achieve?

      WM. What about weapons of mass-construction? "What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson My blog

      A 1 Reply Last reply
      0
      • W WillemM

        It is not possible to open an application from within an asp.net website. The main reason for this is security and secondly, you simply can't access the client machine as the asp.net webpage codebehind runs on the server. What are you trying to achieve?

        WM. What about weapons of mass-construction? "What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson My blog

        A Offline
        A Offline
        AtulRane
        wrote on last edited by
        #3

        First of all thanks for your reply. Actually each client will have the exe on his machine on particular path. one more question is that System.Diagonistic.Process.Start("exe path") will it work or not.

        W 1 Reply Last reply
        0
        • A AtulRane

          First of all thanks for your reply. Actually each client will have the exe on his machine on particular path. one more question is that System.Diagonistic.Process.Start("exe path") will it work or not.

          W Offline
          W Offline
          WillemM
          wrote on last edited by
          #4

          Like I said before, it won't work. You will have to find another way. What will work is when you let the user start a clickonce installation from the server. Using clickonce is the best way to run a client application "from the server". It will install the application on the fly and start it immidiately after that. Be aware though that the application that is installed through clickonce is limited in security too.

          WM. What about weapons of mass-construction? "What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson My blog

          A 1 Reply Last reply
          0
          • W WillemM

            Like I said before, it won't work. You will have to find another way. What will work is when you let the user start a clickonce installation from the server. Using clickonce is the best way to run a client application "from the server". It will install the application on the fly and start it immidiately after that. Be aware though that the application that is installed through clickonce is limited in security too.

            WM. What about weapons of mass-construction? "What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson My blog

            A Offline
            A Offline
            AtulRane
            wrote on last edited by
            #5

            Can you please explain me, How i can implement it?

            W 1 Reply Last reply
            0
            • A AtulRane

              Can you please explain me, How i can implement it?

              W Offline
              W Offline
              WillemM
              wrote on last edited by
              #6

              Check this out: ClickOnce deployment[^] it should explain what it is and how it works.

              WM. What about weapons of mass-construction? "What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson My blog

              A 2 Replies Last reply
              0
              • W WillemM

                Check this out: ClickOnce deployment[^] it should explain what it is and how it works.

                WM. What about weapons of mass-construction? "What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson My blog

                A Offline
                A Offline
                AtulRane
                wrote on last edited by
                #7

                Thanks .

                1 Reply Last reply
                0
                • W WillemM

                  Check this out: ClickOnce deployment[^] it should explain what it is and how it works.

                  WM. What about weapons of mass-construction? "What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson My blog

                  A Offline
                  A Offline
                  AtulRane
                  wrote on last edited by
                  #8

                  I am using ApplicationDeployment in my project to get querystring value but i am getting error The name 'ApplicationDeployment' does not exist in the current. The name 'HttpUtility' does not exist in the current context. I am not using namespace ? , if yes then what are the namcesapace for both of them.

                  W 1 Reply Last reply
                  0
                  • A AtulRane

                    I am using ApplicationDeployment in my project to get querystring value but i am getting error The name 'ApplicationDeployment' does not exist in the current. The name 'HttpUtility' does not exist in the current context. I am not using namespace ? , if yes then what are the namcesapace for both of them.

                    W Offline
                    W Offline
                    WillemM
                    wrote on last edited by
                    #9

                    I'm not sure what you are trying to do here. Can you explain a bit more about what you are trying to do and what the exact errormessage is?

                    WM. My blog

                    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