Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have a requirement to render UI control located in remote machine, in local machine. Any action/click on UI shall execute the business logic on remote machine. I know web technologies like ASP would help in this regard but I want to know if any other way is also possible.
Posted
Updated 23-Feb-12 0:57am
v4
Comments
SteveAdey 23-Feb-12 4:32am    
I would suggest something has gone wrong in the design process. Looks like you're talking more about UI automation here.

The question makes no much sense because with ASP.NET, you don't render the UI. It is done only by the browser, that is, a client side. Server side only generates some resources on HTTP request, returns them in HTTP response. As to UI, this is normally HTML. In principle, for this pure client-server model, it is not very important where the HTML is actually calculated and generated, on the host receiving HTTP request and running the HTTP server, or on some other machine, indirectly. HTML is merely the text. So, the problem looks artificial.

FTP makes no much sense, but of course you can use it as you can run FTP server on one host and utilize it using FtpWebRequest class. Not clear why though.

Essentially, you should think only in terms of just two hosts (and two tiers): a client host and the server host running the HTTP server. For the client host, there is nothing else. So, you only can connect other hosts to the host of HTTP service, and these machines can be anything. If they are on the same local network and the HTTP server's host, they can run anything, and not only on Windows (you can run CLR on Mono, on many platforms, using socket networking, remoting, self-hosted (especially if you don't want IIS) WCF, FTP, really anything).

—SA
 
Share this answer
 
Comments
SteveAdey 23-Feb-12 4:31am    
I think if you read it again, he says this is a WinForms application, not an ASP.Net one as indicated in the tags.
You should be looking at things like WCF to run remote business logic from another machine. The simplest way is to create a web service to run the business logic and return the results to your UI.
 
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