Control a C# application from a Public Webpage [duplicate]
Possible Duplicate:
Run a Method in a C# Application from a Webpage
I would like to host a webpage with Buttons, txtb开发者_运维知识库ox, etc and when User Clicks a button, it runs a method on the C# application. Also the App can gather the Data from the webpage's txtbox.
The Application is located on the user computer. It needs to send and receive Information from the Host. (My Web Host) I have full access to the server. It basically just needs to send and receive simple bools, strings, ints... and for the Website (accessible from anywhere, Mobile phone for example) to have controls that can run Methods on the Application actually running on the computer. So far, I am able to upload and Download from the server via FTP (The app edits 2 html files, and a .txt file)
I appreciate any advice you can give. Thank you
It sounds like you want to have an .ASPX web page that controls a WinForms (traditional Windows application) - for example, the user clicks 'Close' and your WinForm app would close (just an example).
To do that you would need to run some sort of inter-process communication, of which there are a number of choices. Prior to .Net 3.0 you would typically use .Net Remoting which has been replaced by Windows Communication Foundation (WCF) as of .Net 3.0.
精彩评论