asp.net中单个应用程序下的多个Web应用程序 [英] More than one web application under single application in asp.net

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

问题描述



我开发了,现在想要使用一个包含多个Web应用程序的应用程序

在VS 2010中开发的所有应用程序C#asp.net

例如:



带有DB1的Application1

带有DB2的Application2

带有DB3的Application3



我的页面应该是这样的



MAIN标题带徽标

- -------------------------------------------------- --------------------------------

左窗格|右窗格

Application1 |报告(根据申请选择)

申请2 |

申请3 |



根据申请选择显示登录页面在中心

Hi,
I developed and now want to use an application which comprises of more than one web application
all apps developed in VS 2010 C# asp.net
example:

Application1 with DB1
Application2 with DB2
Application3 with DB3

my page should look like

MAIN Header with logo
------------------------------------------------------------------------------------
Left Pane | Right Pane
Application1 | Reports(based on application selection)
Application2 |
Application3 |

display login page based on application selection at centre

推荐答案

首先,您应该了解您愿意开发的主要应用程序类型。您正在使用Web应用程序(使用ASP.NET开发),现在您要开发的是在您已创建的同一Web应用程序下的服务(不要与Web服务混淆)。服务包括(例如),



First of all you should understand the main type of application that you are willing to develop. You're having a web application, (develop using ASP.NET) and now what you are going to develop is a service (not to be confused with Web Services) under the same web application that you have already created. Services include (as an example),



  1. 用户 - 用于身份验证目的
  2. 聊天和帖子 - 更新
  3. Bla bla - 用于其他乱码目的......





您的Web应用程序可以支持其他大量类型的服务。这取决于您,您希望支持和​​允许的服务类型。这些服务中的每一个都可以与它们自己的数据库相关联,这些数据库将保存对象(表)和其他东西(属性,存储过程等)以运行基于模型的进程。您可以使用哪个数据库来处理哪些服务。如果这是基于模型 - 视图 - 控制器的模式,那么您应该知道您的控制器始终允许您控制流向客户端的响应。



您只向我们提供了View的示例草图(可能是布局文件),我们不知道您的应用程序是什么,它将在那些应用程序中执行什么操作其他三项服务......等等。无论如何,您仍然可以使用不同的(三个)控制器来获取来自不同来源的数据,并填写您的视图以供用户使用。



There are other enormous types of services that your web application would support. It depends on your, for what type of services you would want to support and allow. Each of these services can be associated with their own database, which would hold objects (tables) and other stuff (attributes, stored procedures etc.) to run your model-based processes. It is upon you to use which database for which service. If this is a Model-view-controller based pattern, then you should know that your Controller always allows you to hold control over the response being streamed down to the client.

You have only provided us with a sample sketch of your View (perhaps a layout file) and we have no idea what your application is, what it would do in those other three services... And so on. Anyways, still you can use different (three) controllers to get the data from different sources and fill up your view for the user to use.


这篇关于asp.net中单个应用程序下的多个Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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