如何创建基于Lan的Windows应用程序 [英] How Do I Create Lan Based Windows Application

查看:100
本文介绍了如何创建基于Lan的Windows应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

类似于内部网站..我需要创建一个内部网窗口应用程序..

我该怎么做。意思是应用程序或我需要做的一些更改是正常的。

我是否需要为客户端PC创建不同的应用程序,为服务器PC创建一个应用程序..

解决方案

如果您擅长Web应用程序和如果满足要求,您可以考虑为Intranet创建Web应用程序。您可以在Visual Studio中找到这样的项目模板。

现在,如果您更喜欢Windows应用程序,那么也可以有更好的解决方案,但让我建议一个简单的解决方案。



首先,您的数据库需要在服务器中,并且可以从所有其他机器访问。

大多数情况下,您无需在窗口中设计任何特定的内容应用。但请考虑以下事项 -

1.如果您计划编写任何CPU特定代码,那么需要确保所有节点机器都需要支持的架构。

2.您需要确保可以配置数据库连接字符串。我的建议是将此信息放在app.config文件中。

3.在客户端节点中安装应用程序后,需要在配置中提供服务器的数据库凭据。



希望,它有所帮助:)


这个问题太模糊了,没有任何意义。也许您只需知道一件事:您可以使用与Internet完全相同的方式创建ASP.NET应用程序。但是你也可以根据自定义网络做更多事情,特别是如果你的防火墙没有在Intranet域内创建障碍。



-SA

Similar to an intranet website..i need to create an intranet windows application..
How can i do it.means will it be normal like application or some changes i need to do it.
Does i need to create different applications for client PC's and one for server PC..

解决方案

If you are good at web application and requirement meets then you may consider creating web application for intranet. You can find a project template for such in Visual Studio.
Now, if you prefer windows application then also there can be better solutions but let me suggest a simple one.

First of all, your database need to be in the server and should be accessible from all other machines.
Mostly, there is no need to design anything specific in your windows application. But consider following things-
1. If you have planned to write any CPU specific code then make need to make sure that all the node machines need to have the supported architecture.
2. You need to make sure that database connection string can be configurable. My suggestion is to put this information in the app.config file.
3. After you installed your application in the client nodes you need to provide the database credentials of the server in the config.

Hope, it helps :)


The question is so vague that it makes no sense. Perhaps you need to know just one thing: you can create am ASP.NET applications in exact same way as for Internet. But also you can do a lot more things based on custom networking, especially if your firewalls don't create barriers inside the Intranet domain(s).

—SA


这篇关于如何创建基于Lan的Windows应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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