西双版纳有什么好玩的地方| 眉尾长痘是什么原因| 甲沟炎是什么| 流口水吃什么药| 水浒传主要讲了什么| 4是什么意思| 鼠和什么属相相冲| 益安宁丸主治什么病| 贸易壁垒是什么意思| 馒头逼是什么意思| 楠字五行属什么| 闭日是什么意思| 丹凤眼是什么样| 冰糖里面为什么有白线| 走路腿软没劲是什么原因引起的| 什么叫直男| 手不什么| 房颤与早搏有什么区别| 巨蟹和什么星座最配| 嘴干嘴苦是什么原因| dl是什么| 孕妇梦见坟墓是什么预兆| 孔雀开屏是什么行为| 垢是什么意思| 1989年什么生肖| 乌药别名叫什么| 肛门疼痛是什么原因引起的| 十月二十三号是什么星座| 随喜赞叹是什么意思| 谷氨酰转肽酶高什么原因| 火字旁的有什么字| 热射病是什么症状| 马克杯是什么意思| 慢性咽炎是什么症状| 三个龙念什么| 相濡以沫是什么生肖| 经常头晕是什么原因引起的| 博士的学位是什么| 离婚都需要什么手续和证件| 天性是什么意思| 耳结是什么原因造成的| 21.75是什么意思| 八戒是什么意思| 一醉方休什么意思| 女人梦见猪是什么预兆| 绯色是什么意思| 脾主四肢是什么意思| 亚甲炎是什么病| 花荣的绰号是什么| 饮水思源是什么意思| 黄茶适合什么人喝| 红红的太阳像什么| 中焦不通吃什么药| 膛目结舌是什么意思| 护理主要学什么| 得过且过是什么意思| pa是什么材质| 蟑螂喜欢吃什么| 血清检查能测出什么| 9.9是什么星座| 麻酱是什么做的| 愚公移山是什么意思| 体检转氨酶高是什么原因| 小孩子包皮挂什么科| 三番四次是什么生肖| 爱心是什么意思| 孕妇奶粉什么时候开始喝最好| 钳子什么牌子好| pcr是什么意思| 为什么会得阑尾炎| 结局he是什么意思| 脾胃虚弱吃什么食物好| 为什么支气管炎咳嗽长期不好| 怡的意思和含义是什么| 咖啡和什么不能一起吃| 小脑萎缩有什么症状| 婴儿增强免疫力吃什么| 什么水果减肥| 煊字五行属什么| 查乙肝五项挂什么科| 75是什么意思| 狗为什么不吃饭| 点完痣要注意什么| 吃完晚饭就犯困是什么原因| 葡萄糖是什么意思| 鼠分念什么| hvp是什么病毒| 卵泡期是什么时候| 凭什么是什么意思| 情感障碍是什么意思| 加号是什么意思| 湿热内蕴证有什么症状| 喝红枣水有什么好处和坏处| 唇炎是什么原因造成的| 天蝎座女生配什么星座| 河蚌吃什么| 胱抑素c高是什么原因| 湖北有什么好玩的地方| 身上经常痒是什么原因| 堪堪是什么意思| o型血父母是什么血型| 赊事勿取是什么意思| 明哲保身是什么生肖| 泡饭为什么对胃不好| 飞蚊症是什么引起的| 头顶长白头发是什么原因造成的| 6月5号什么星座| 痔疮手术后可以吃什么水果| 射不出来是什么原因| 2002年是什么年| 75年属什么的生肖| 什么是交感神经| 检查盆腔炎做什么检查| image是什么意思| 血栓吃什么药可以疏通血管| abcd是什么意思| 尿液阳性是什么意思| 牙结石用什么牙膏最好| 儿童抽动症挂什么科| 大骨节病是一种什么病| oof是什么意思| 土字旁的有什么字| 什么样的花| 唯有读书高的前一句是什么| 析是什么意思| 胃痉挛有什么症状| 观音殿求什么| 狮子座和什么星座最配| 黄芪有什么功效| 拜谒是什么意思| 蒙脱石散是什么成分| 嗫嚅是什么意思| 什么运动减肥最快| 胃疼吃什么药好的快| 甄嬛传什么时候拍的| pes是什么材料| 氟骨症是什么病| 老蒯是什么意思| 涤塔夫是什么面料| 情景剧是什么意思| 爸爸的哥哥的老婆叫什么| 吸水石是什么石头| 止血敏又叫什么名| r一谷氨酰转移酶高说明什么| 什么水果对胃好更养胃| 扁头适合什么发型| 芙蓉什么意思| 什么降血糖| 手足是什么意思| 泌尿内科主要看什么病| 牛奶有什么营养| 茶叶有什么功效| 喝酒伤什么器官| 鸡翅木是什么木头| 牛肉用什么炒好吃| 霍霍是什么意思| 84年什么命| 穷极一生是什么意思| 权志龙为什么这么火| 熬夜吃什么水果好| 金相是什么意思| 豆腐有什么营养| 什么是碳水| 糖尿病患者能吃什么水果| 热浪是什么意思| 中午吃什么不会胖| 什么水解酒| 房室传导阻滞是什么意思| 什么麻料最好| 除湿气用什么药| 珍珠是什么做的| 梦见猫什么意思| beginning什么意思| 男性生殖系统感染吃什么药| 旅游穿什么鞋最舒服| 气泡水是什么| 怀疑甲亢需要做什么检查| 宫颈纳囊是什么意思| 为什么会得水痘| 有两把刷子是什么意思| 飞鱼籽是什么鱼的籽| 家庭烧烤准备什么食材| 黉门是什么意思| 婴儿肥是什么意思| 今天是什么甲子| 胃ct能检查出什么病| 什么人靠别人的脑袋生活| 外阴白斑瘙痒抹什么药| 系鞋带什么意思| 血糖看什么指标| 洋姜学名叫什么| 肝不好有些什么症状| 悬壶济世是什么意思| 康桑密达是什么意思| 一个月的小猫吃什么| 包皮长什么样| 为什么睡久了会头疼| 圆周率是什么| 梦遗是什么原因| 纹眉失败擦什么淡化| bg文是什么意思| 刘备儿子叫什么| 陕西什么面| 电解质水是什么| 口臭严重吃什么药好得快| 亟须什么意思| 耳朵里长痘是什么原因| 腋下有味道是什么原因| 眼压高是什么症状| 劳苦功高是什么意思| 跑步什么时候跑最好| 老道是什么意思| 感冒干咳无痰吃什么药| atp是什么| 治疗早泄吃什么药| 阉人什么意思| 扒灰什么意思| 眼肿是什么原因| 胃气不通什么症状| 孕妇dha什么时候吃| 韭菜炒什么好吃| 吃什么对前列腺有好处| 看脊椎挂什么科| 胸外扩是什么样子| 白发用什么染发最安全| 父母都是a型血孩子是什么血型| 阴道没水什么原因| 屠苏酒是什么酒| 食是什么生肖| 嘴唇有黑斑是什么病| 鳄鱼为什么流眼泪| 骨盆前倾挂什么科| 人为什么会说梦话| iq什么意思| 高血压可以吃什么肉| md是什么意思| 文爱 什么意思| 吃什么东西能通便| 客厅挂钟放在什么位置好| 鸡蛋炒什么菜谱大全| 肛门周边瘙痒擦什么药| 乙型肝炎核心抗体阳性是什么意思| 大汗淋漓是什么意思| 外阴瘙痒擦什么药| 强迫症什么意思| 章鱼的血是什么颜色| 尖湿锐吃什么药最好| 东华帝君是什么神仙| 机智如你是什么意思| 胃肠彩超能检查出什么| 孙悟空被压在什么山下| 阴晴不定是什么意思| 午五行属什么| 张姓五行属什么| 龙筋是什么| 1931年属相是什么| 什么是御姐| palace是什么牌子| 上海话十三点是什么意思| 吃什么补充膝盖润滑液| 皮肤溃烂是什么原因| 什么茶下火| 男性阴囊潮湿是什么病| 22岁属什么| 百度Jump to content

《直播中国-航拍中国》 20180115 吉林:高山雾凇 现壮观“白色森林”

From Wikipedia, the free encyclopedia
百度 ”由此可见,脱离发展实际搞民生,也是违背《预算法》立法初衷的。

ASP.NET MVC
Developer(s)Microsoft
Final release
5.3.0 / 23 October 2023; 21 months ago (2025-08-06)[1]
Preview release
6.0.0-rc2 / 17 May 2016; 9 years ago (2025-08-06)[2]
Repository
Written inC#, VB.NET[3]
Operating systemCross-platform
Platform.NET Framework, Mono
SuccessorASP.NET Core
TypeWeb application framework
LicenseApache License 2.0
Websitedotnet.microsoft.com/apps/aspnet/mvc Edit this at Wikidata

ASP.NET MVC is a web application framework developed by Microsoft that implements the model–view–controller (MVC) pattern. It is no longer in active development[citation needed]. It is open-source software, apart from the ASP.NET Web Forms component, which is proprietary.

ASP.NET Core has since been released, which unified ASP.NET, ASP.NET MVC, ASP.NET Web API, and ASP.NET Web Pages (a platform using only Razor pages). MVC 6 was abandoned due to Core and is not expected to be released. Core is currently planned to merge into ".NET 5".[4]

Some well known sites that use ASP.NET MVC include Stack Overflow,[5] Microsoft, GoDaddy and Ancestry.com.[6][needs update]

Background

[edit]

Based on ASP.NET, ASP.NET MVC allows software developers to build a web application as a composition of three roles: Model, View and Controller. The MVC model defines web applications with 3 logic layers:

  • Model (business layer)
  • View (display layer)
  • Controller (input control)

A model represents the state of a particular aspect of the application. A controller handles interactions and updates the model to reflect a change in state of the application, and then passes information to the view. A view accepts necessary information from the controller and renders a user interface to display that information.[7]

In April 2009, the ASP.NET MVC source code was released under the Microsoft Public License (MS-PL).[8]

"ASP.NET MVC framework is a lightweight,[9] highly testable presentation framework that is integrated with existing ASP.NET features. Some of these integrated features are master pages and membership-based authentication. The MVC framework is defined in the System.Web.Mvc assembly."[10]

The ASP.NET MVC framework couples the models, views, and controllers using interface-based contracts, thereby allowing each component to be tested independently.[citation needed]

Apache License 2.0 release

[edit]

In March 2012, Scott Guthrie announced on his blog that Microsoft had released part of its web stack (including ASP.NET MVC, Razor and Web API) under an open source license (Apache License 2.0).[11]

Guthrie wrote that "Doing so will enable a more open development model where everyone in the community will be able to engage and provide feedback on code checkins, bug-fixes, new feature development, and build and test the products on a daily basis using the most up-to-date version of the source code and tests."

The source code now resides on CodePlex. ASP.NET Web Forms was not included in this initiative for various reasons.[12]

Release history

[edit]
Release history
Date Version
10 December 2007 ASP.NET MVC CTP
13 March 2009 ASP.NET MVC 1.0[13]
16 December 2009 ASP.NET MVC 2 RC[14]
4 February 2010 ASP.NET MVC 2 RC 2[15]
10 March 2010 ASP.NET MVC 2[16]
6 October 2010 ASP.NET MVC 3 Beta[17]
9 November 2010 ASP.NET MVC 3 RC[17]
10 December 2010 ASP.NET MVC 3 RC 2[18]
13 January 2011 ASP.NET MVC 3[19]
20 September 2011 ASP.NET MVC 4 Developer Preview[20]
15 February 2012 ASP.NET MVC 4 Beta[21]
31 May 2012 ASP.NET MVC 4 RC[22]
15 August 2012 ASP.NET MVC 4[23]
30 May 2013 ASP.NET MVC 4 4.0.30506.0[24]
26 June 2013 ASP.NET MVC 5 Preview[25]
23 August 2013 ASP.NET MVC 5 RC 1[26]
17 October 2013 ASP.NET MVC 5[26]
17 January 2014 ASP.NET MVC 5.1[26]
10 February 2014 ASP.NET MVC 5.1.1[26]
4 April 2014 ASP.NET MVC 5.1.2[26]
22 June 2014 ASP.NET MVC 5.1.3[26]
1 July 2014 ASP.NET MVC 5.2.0[26]
28 August 2014 ASP.NET MVC 5.2.2[26]
9 February 2015 ASP.NET MVC 5.2.3[26]
12 February 2018 ASP.NET MVC 5.2.4[27]
2 May 2018 ASP.NET MVC 5.2.5[28]
11 May 2018 ASP.NET MVC 5.2.6[26]
29 November 2018 ASP.NET MVC 5.2.7[26]
12 April 2022 ASP.NET MVC 5.2.8[26]
31 May 2022 ASP.NET MVC 5.2.9[26]
23 October 2023 ASP.NET MVC 5.3.0 (Current)

Project structure

[edit]
  • ?? Application
    • ?? Controllers
      • ?? PetController.cs
    • ?? Models
      • ?? PetViewModel.cs
    • ?? Views
      • ?? Pet
        • ?? Create.cshtml
        • ?? Delete.cshtml
        • ?? Edit.cshtml
        • ?? Index.cshtml

View engines

[edit]

The view engines used in the ASP.NET MVC 3 and MVC 4 frameworks are Razor and the Web Forms.[29][30] Both view engines are part of the MVC 3 framework. By default, the view engine in the MVC framework uses Razor .cshtml and .vbhtml, or Web Forms .aspx pages to design the layout of the user interface pages onto which the data is composed. However, different view engines can be used.[31] Additionally, rather than the default ASP.NET Web Forms postback model, any interactions are routed to the controllers using the ASP.NET Routing mechanism. Views can be mapped to different URLs.[7]

Other view engines:

  • The MVCContrib library contains 8 alternate view engines. Brail, NDjango, NHaml, NVelocity, SharpTiles, Spark, StringTemplate and XSLT.[32]
    • The StringTemplate View Engine utilizes a .NET port of the Java templating engine, StringTemplate.[33]
    • Spark is a view engine for the ASP.NET MVC (and the Castle Project MonoRail) frameworks.[34]
    • NDjango is a port of the Django web framework's templating language to .NET. It is written in F# and comes with Visual Studio extension including full Intellisense support.[35]
  • Naked Objects for .NET is an implementation of the naked objects pattern using ASP.NET MVC.

See also

[edit]

References

[edit]
  1. ^ "Nuget package Microsoft.AspNet.Mvc". Retrieved 10 January 2025.
  2. ^ "MVC Releases". Official Microsoft ASP.NET Site. Retrieved 18 May 2016.
  3. ^ Rick Anderson. "Intro to ASP.NET MVC 3 (VB)". The Official Microsoft ASP.NET Site. Retrieved 17 January 2015.
  4. ^ "Introducing .NET 5". 6 May 2019.
  5. ^ "What Was Stack Overflow Built With?". 21 September 2008.
  6. ^ "Top 10 Websites Written Using ASP.NET MVC - DZone Web Dev".
  7. ^ a b Scott Guthrie (15 October 2007). "ASP.NET MVC Framework". Archived from the original on 22 October 2007. Retrieved 23 October 2007.
  8. ^ Scott Guthrie (2 April 2009). "ASP.NET mvc 1.0 Source Released". Archived from the original on 3 April 2009. Retrieved 2 April 2009.
  9. ^ Koirala, Shivprasad (27 September 2014). "Webform vs MVC performance comparison done with 25 user load test". codeproject. Retrieved 27 September 2014.
  10. ^ "ASP.NET MVC". aspnet4.com. Archived from the original on 4 April 2014. Retrieved 17 January 2015.
  11. ^ Scott Guthrie (28 March 2012). "ASP.NET MVC, Web API, Razor and Open Source". Retrieved 29 March 2012.
  12. ^ Scott Hanselman. "ASP.NET MVC 4, ASP.NET Web API and ASP.NET Web Pages v2 (Razor) now all open source with contributions". Retrieved 29 March 2012.
  13. ^ "Download ASP.NET MVC 1.0 from Official Microsoft Download Center". Microsoft. Archived from the original on 30 May 2012. Retrieved 17 January 2015.
  14. ^ Phil Haack (16 December 2009). "ASP.NET MVC 2 RC Released". Retrieved 17 January 2015.
  15. ^ Phil Haack (4 February 2010). "ASP.NET MVC 2 RC 2 Released". Retrieved 17 January 2015.
  16. ^ "Download ASP.NET MVC 2 RTM from Official Microsoft Download Center". Microsoft. Retrieved 17 January 2015.
  17. ^ a b "ASP.NET MVC 3". The Official Microsoft ASP.NET Site. Retrieved 17 January 2015.
  18. ^ "Announcing ASP.NET MVC 3 (Release Candidate 2)". ScottGu's Blog. weblogs.asp.net. 11 December 2010. Retrieved 17 January 2015.
  19. ^ "Download ASP.NET MVC 3 RTM from Official Microsoft Download Center". Microsoft. Retrieved 17 January 2015.
  20. ^ "ASP.NET". CodePlex. Retrieved 17 January 2015.
  21. ^ "ASP.NET MVC 4". The Official Microsoft ASP.NET Site. Retrieved 17 January 2015.
  22. ^ "MSDN Blogs". Microsoft. Retrieved 17 January 2015.
  23. ^ "MSDN Blogs". Microsoft. Retrieved 17 January 2015.
  24. ^ "ASP.NET and Web Tools 2012.2 Release Notes". The Official Microsoft ASP.NET Site. Archived from the original on 10 January 2015. Retrieved 17 January 2015.
  25. ^ Microsoft ASP.NET Team. "ASP.NET and Web Tools for Visual Studio 2013 Release Notes". The Official Microsoft ASP.NET Site. Retrieved 17 January 2015.
  26. ^ a b c d e f g h i j k l m "Microsoft ASP.NET MVC 5.2.2". NuGet. Retrieved 17 January 2015.
  27. ^ "Announcing ASP.NET MVC 5.2.4, Web API 5.2.4, and Web Pages 3.2.4". Microsoft. 12 February 2018. Retrieved 14 March 2018.
  28. ^ "Announcing ASP.NET MVC 5.2.5, Web API 5.2.5, and Web Pages 3.2.5". Microsoft. 2 May 2018. Retrieved 4 May 2018.
  29. ^ "ScottGu's Blog - Introducing "Razor" – a new view engine for ASP.NET". asp.net. 3 July 2010.
  30. ^ "ASP.NET MVC 3". The Official Microsoft ASP.NET Site. 15 June 2023.
  31. ^ "Scott Hanselman's ASP.NET MVC Preview 2 Screencast Tutorials". Archived from the original on 29 October 2008. Retrieved 13 October 2008.
  32. ^ MVCContrib
  33. ^ "string-template-view-engine-mvc - ASP.Net MVC ViewEngine for StringTemplate - Google Project Hosting". google.com.
  34. ^ "Spark View Engine". CodePlex. Archived from the original on 11 January 2018. Retrieved 15 March 2013.
  35. ^ "ndjango - An implementation of the Django Template Language on the .NET platform, using the F# language. - Google Project Hosting". google.com.

Further reading

[edit]
  • Jon Galloway, Phil Haack, Brad Wilson, and K. Scott Allen, Professional ASP.NET MVC 3, Wrox, 2011, ISBN 1-118-07658-3
  • Jeffrey Palermo, Jimmy Bogard, Eric Hexter, Matthew Hinze, and Jeremy Skinner, ASP.NET MVC 4 in Action, Manning Publications, 2012, ISBN 978-1617-29041-1
  • Steven Sanderson, Adam Freeman, Pro ASP.NET MVC 3 Framework, Second Edition, Apress, 2011, ISBN 1-4302-3404-0
  • Jonathan McCracken, Test-Drive ASP.NET MVC, Pragmatic Bookshelf, 2010, ISBN 1-934356-53-0
  • Stephen Walther, ASP.NET MVC Framework Unleashed, Sam's, 2009, ISBN 0-672-32998-0
  • Arnaud Weil, Learn ASP.NET MVC, 2015, ISBN 1-32648303-X
  • Andrew Lock, ASP.NET Core in Action, Manning Publications, 2018, ISBN 978-1617-29461-7
[edit]
小儿麻痹是什么病 北京摇号什么时候开始的 3月5日是什么星座的 异烟肼是什么药 龟头发红是什么原因
身体安康什么意思 氯高是什么原因 头一直疼是什么原因 乳腺增生不能吃什么食物 孔雀翎是什么东西
为什么减肥一直减不下来 1983年出生是什么命 什么面不能吃 胆疼是什么原因 1206是什么星座
病毒五项检查的是什么 去离子水是什么水 假借是什么意思 甲鱼炖什么好吃 什么的雾
孕妇梦见捡鸡蛋是什么意思hcv8jop4ns1r.cn 补肝血吃什么食物最好hcv8jop2ns0r.cn 尿频尿急小腹胀痛吃什么药hcv8jop0ns2r.cn 什么是锆石hcv9jop7ns4r.cn 一什么节日hcv8jop8ns9r.cn
腿硬邦邦的是什么原因baiqunet.com 症瘕病是什么病hcv9jop1ns5r.cn 静对什么hcv8jop1ns8r.cn 早上屁多是什么原因造成的hcv8jop2ns2r.cn 权威是什么意思bjhyzcsm.com
玩家是什么意思hcv8jop9ns6r.cn 3月27号是什么星座hcv9jop3ns0r.cn 家是什么hlguo.com 脾胃虚弱吃什么蔬菜hcv8jop2ns6r.cn 消肿用什么药hcv8jop1ns9r.cn
射频是什么hcv9jop5ns7r.cn 屁股疼痛是什么原因引起的hcv7jop5ns2r.cn 高温丝假发是什么材质aiwuzhiyu.com 小孩脚麻是什么原因hcv8jop2ns7r.cn 身体皮肤痒是什么原因hcv7jop5ns6r.cn
百度