中的应用和实现
MVC 架构在 Asp.net 中的应用和实现
摘要:本文主要论述了 MVC 架构的原理、优缺点以及 MVC 所能为 Web 应用带来的好处。并
以“成都市信息化资产管理系统”框架设计为例,详细介绍其在 Asp.net 环境下的具体实现。旨
在帮助 Web 设计开发者更好的了解和掌握 MVC,合理利用 MVC 构建优秀的 Web 应用。
关键字:MVC、视图、控制器、模型、Asp.net
Application and Implementation of MVC Construction in Asp.net
Abstract: This article mainly elaborated the construction principle of MVC, the
merits and shortcoming as well as MVC can be an advantage, which the Web
application brings. And take “the Chengdu informationization property
management system management system” the frame design as the example,
introduces its concrete realization in detail under Asp. net environment. Is for
the purpose of helping Web to design an exploiter better understanding and to
grasp MVC, reasonably constructs the outstanding Web application using MVC.
Keywords: MVC 、View 、Controller、Model、Asp.net
0 引言
许多 Web 应用都是从数据存储检索数据并将其显示给用户。在用户更改数据之后,系统再将
更新内容存储到数据存储中。因为关键的信息流发生在数据存储和用户界面之间,所以很多应
用将数据和用户界面这两部分绑在一起,以减少编码量并提高应用程序性能。但是,这种看起
来自然而然的方法有一些大问题。一是,用户界面的更改往往比数据存储系统的更改频繁得多。
二是,这种耦合往往会并其他业务逻辑。那么如何让 Web 应用程序的用户界面功能实现模块