Click here to Skip to main content
15,860,859 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an windows forms application written in c# running at local pc, I wish that I can add an web interface to it so I can use web browser to remotely monitor and control it, basically same or similar interface and functions, an example of this is http://lifehacker.com/260393/remote-control-your-torrents-with-utorrents-webui, I want to know how to achieve this easily, I have the full code of the windows form application, which is open source, but since I am not the author, rewriting it from scratch is out of question.
Posted
Updated 20-May-13 14:39pm
v2
Comments
Sergey Alexandrovich Kryukov 20-May-13 20:47pm    
Are you sure appropriate Internet access? Regular ISP "home" or small business service plans just won't allow you to act as an HTTP server...

Other than that — IIS + ASP.NET or some other service, perhaps embedded + some ASP.NET application you may want to write. What's the problem?
—SA

1 solution

The short answer is "it depends". It depends on how the application was written, if it uses an MVC framework or some other way to stick something between the UI layer and the back-end. Since its open source, I would bet that its not MVC or at least not easily decoupled and it may be impossible to add a web interface without rewriting much of the application.

Where do you start? Look up how to embed a web server into the application, service the requests, and present web pages. There are numerous articles on CodeProject about similar stuff, even a web server library you could use.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900