一个程序,多个客户 [英] one Programm, multiple Clients

查看:96
本文介绍了一个程序,多个客户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我必须对在网络服务器上运行的应用程序进行编程.在此服务器上,某些硬件已连接到串行端口(例如).我想从多个客户端处理服务器上的程序.应该从客户端的浏览器中访问它.
首先,我在Visual Studio 2010中编写了一个C#WPF浏览器应用程序.但是客户端从服务器下载该应用程序,并从programm执行第二个实例.
我应该开发什么样的程序? ASP.NET,Ajax,Silverlight等...

在哪里可以搜索?

我想使用ASP.NET和Visual Web Developer2010.我不确定是必须创建两个单独的应用程序(一个用于服务器,一个用于客户端)还是仅创建一个在Webbrowser中启动的应用程序.我希望我可以创建一个应用程序,该应用程序从Web服务器上启动,并且可以从网络中的客户端上的每个Web浏览器访问.可能吗 ?我必须创建什么样的应用程序(例如"ASP.NET Web应用程序"或"ASP.NET AJAX服务器控件" ...)

我在Visual Studio Web Developer 2010中创建一个项目.我使用了标准的ASP.NET网站,并创建了两个Button,它们在两个不同的语句中切换Label.

我的目标是从子网中的多个clint切换Label.但是,如果我从不同的角度调用该网站,则看不到标签的一种状态.

例如,clint1将标签切换到第二条语句.如果我致电站点表单clint2,则标签已在默认语句中.
我的目标是让所有Clints都能看到标签的相同陈述.

Hi,

I have to programm an application which runs on a webserver. On this server some hardware is connected to the serial port (for example). I want to handle the programm on the server from multiple clients. It should be accessed from client in a browser.
In a first effort I write a C# WPF-browser application in Visual Studio 2010. But the client downloads the application from server and execute a second instance from programm.
What kind of programm should I develop? ASP.NET, Ajax, Silverlight, ...

Where can I search?

I want to use ASP.NET and Visual Web Developer 2010. I am not sure whether i have to create two seperate applications (one for server, one for client) or only one which starts in webbrowser. I hope i can create one application which i start on an webserver and have access from each webbrowser on an client in the net. Is it possible ? What kind of application i have to create (for example "ASP.NET Web Application" or " ASP.NET AJAX Server Control" ...)

I create a Project in Visual Studio Web Developer 2010. I used the standard ASP.NET Website and create two Buttons which switch a Label in two different statements.

My goal is to switch the Label from multiple clints in the subnet. But if i call the website from different clints, i cant see ony one state of the label.

For example clint1 switch the label to the second statement. If i call the site form clint2 the label is already in the default statement.
My goal is that all Clints can see the same statement of the label.
Is the a posibility to do something ?

推荐答案

问题似乎在于您不是真的在使用服务器端代码.

无论您想使用什么技术,首先,它都需要服务器端编程和某种客户端-服务器交互.有很多方法:Java,ASP.NET ...如果您已经有了C#代码,则可能应该是.NET.

Ajax可能与您的问题很相关,但这并不是真正的独立技术,而只是您可能需要的任何工具箱的一小部分.无论如何,客户端都会触发Ajax请求.可能会很有帮助.

如果您的服务器应用程序真的非常简单(我对此表示怀疑),并且/或者如果您的服务器不支持ASP.NET(并且不支持基于Mono的ASP),则可以使用一些更简单的技术:PHP或我想说的是Python使用WSGI(如果在相关服务器上可用);但还有更多选择...
It looks like the problem is you''re not really use server-side code.

Whatever technology you may want to use, first and foremost it needs server-side programming and some kind of client-server interaction. There are many approaches: Java, ASP.NET... If you already have C# code, it is likely should be .NET.

Ajax might be well relevant to your problem, but this is not really an independent technology, but just a small part of any of the tool boxes you may need. Anyway, Ajax requests are triggered in client part. Can be very helpful.

If your server application is going to be really simple (which I doubt) and/or if your server does not support ASP.NET (and not ASP over Mono), some more simple technologies might work: PHP or, I would say, Python with WSGI (if available on the server in question); but also there are a lot more options...


这篇关于一个程序,多个客户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆