第29卷第1期
V01.29No.1
计算机工程与
设计 ComputerEngineering
and
2008年1月
Jan.2008
Design
基于ASP.
NET的MVC设计模式的研究
林
庆1,
朱翠苗L2,
郑广成L2,
贾洪艳地,
吴
曼1
(1.江苏大学计算机科学与
通信工程,江苏镇江212013;2.连云港职业技术信息工程,江苏连云港222006)
摘要:MVC设计模式可以在满足界面要求的同时,使
软件的计算模型独立于界面的构成,建立大型分布式应用
程序框架;介绍了MVC设计模式的原理和组成,从视图,控制器,模型3个方面,详细描述了ASP.NET实现MVC的方法争技术,讨论了扩展MVC模式的思路和方法,清晰地分析了MVC的优缺点;该模式适用于大型可扩展的Web应用的开发,在保持用户界面稳定的前提下,实现了根据用户需要进行界面显示内容和显示形式的改变及调整.关键词:框架;设计模式;视图;控制器;模型中图法分类号:TP311.1l文献标识码:A文章编号:1000-7024(2008)01.0167.03
Study
on
MVCdesignpattem
inASP.NET
LINQin91,ZHUCui—miao比,ZHENGGuang—cheng他,JIA
Hong-yan也,WUMinl
222006,China)
(1.School
ofComputerScienceandTelecommunicationEngineering,Jiangsu
University,Zhenjiang212013,China;
2.SchoolofInformationEngneering,LianyungangTechnicalCollege,Lianyungang
Abstract:MVCdesignpatterncontentinterface'Srequirements,meanwhilemakecomputemodelindependencefrominterface,andset
uplargedistribmedapplicationproceduretechniqueforrealizationextendand
flame.TheprincipleandcomposeofN【vCdesignpatte
misintroduced,andthemethodsand
detailbyusingASP.NET
are
ofMVCa托describedin
merits
fromthethreeaspectsofview,controllerandmodel.Howto
large
webapplications.
MVCdesignpattern,its
can
andfaults
contentandform
bcchargedand