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. Windows Application in Web Application

Windows Application in Web Application

Scheduled Pinned Locked Moved ASP.NET
help
4 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.
  • P Offline
    P Offline
    pradipta
    wrote on last edited by
    #1

    I have a windows application.I want to run the application in my website,for instance there is a button on my home page ,i want the windows program to run whenever the user clicks on the button.Can any body please help me ,its very urgent.

    J 1 Reply Last reply
    0
    • P pradipta

      I have a windows application.I want to run the application in my website,for instance there is a button on my home page ,i want the windows program to run whenever the user clicks on the button.Can any body please help me ,its very urgent.

      J Offline
      J Offline
      John Kuhn
      wrote on last edited by
      #2

      It's hard to answer this question -- are you referring to launching an application already installed on the user's desktop, or are you referring to executing something at the server when the user submits the form?

      P 1 Reply Last reply
      0
      • J John Kuhn

        It's hard to answer this question -- are you referring to launching an application already installed on the user's desktop, or are you referring to executing something at the server when the user submits the form?

        P Offline
        P Offline
        pradipta
        wrote on last edited by
        #3

        Yes my application is definitely in the server and i want to execute it at the server when user submits the form. Is it possible to use an usercontrol in web application which is developed in the windows application ?

        J 1 Reply Last reply
        0
        • P pradipta

          Yes my application is definitely in the server and i want to execute it at the server when user submits the form. Is it possible to use an usercontrol in web application which is developed in the windows application ?

          J Offline
          J Offline
          John Kuhn
          wrote on last edited by
          #4

          What I would consider is this: if possible, create a component shared by the windows application and the web application that returns the expected results in the same form to both apps. For example, you could create a component that returns a recordset/dataset based on values stored in public properties, or perhaps, stores information in a database and returns a value indicating success or failure. The alternative is awkward and a bit kludgey -- you could install the windows application on the server and have your web application impersonate a user account that has permission to execute the application, then use something like the Windows Scripting Host or Winbatch to launch the app and "animate" the correct sequence of events to start the application, produce the correct series of mouse clicks and keystrokes to complete the desired action. I think that performance could be an issue: it is probably not possible to have the app sitting there waiting for activity, so each new user request, in effect, starts a new instance of the app on the server, which, depending on the number of users, could kill your server.

          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