ASP.NET MVC: A New Framework for Building Web Applications

convertingtownΛογισμικό & κατασκευή λογ/κού

4 Νοε 2013 (πριν από 3 χρόνια και 7 μήνες)

115 εμφανίσεις


PC21


Oct 27
th
,
2008


ASP.NET MVC: A New Framework for
Building Web Applications


Speakers

Phil Haack,
http://www.hacked.com

Jeff Atwood,
http://www.codinghorror.com


For quite some time, developers have worked on Web Forms to build
their Web applications. Web Forms has its pros and cons, though.
Some developers love it because it’s mature, while some hate it due
t漠楴o 捯m灬數ity. Apm.NbT MsC i猠愠湥a te戠b灰li捡瑩c渠n
r潪e捴
ty灥 w桩捨⁰c潶i摥猠慮 慬t敲湡eiv攠潰ei潮 t漠te戠䙯rms 慮搠灵ts y潵
i渠f畬l 捯ctr潬 of y潵r Apm.Nb吠teb 慰灬i捡瑩c湳n T桥 g潡l猠of
Apm.NbT MsC 慲攺




䙲楣瑩F湬敳猠e敳瑡扩lity



Tig桴 捯ctr潬 潶敲em慲歵p



U獥爯S敡rc栠䕮gi湥 O灴pmiz慴楯渠nSEO) fri敮摬y UR




䱥v敲慧攠t桥 扥湥fits of ASP.NET



C潮v敮ti潮猠慮搠杵d摡湣n


Mentioned
Technologies



ASP.NET



ASP.NET MVC
䙲慭敷潲k



ADO.N整 E湴楴n
D慴愠M潤敬



䩑略ry


Wit栠䅓P.NET MVC, 捯湣nr湳f We戠b敶敬潰m敮t ar攠獥灡r慴敤. It 慰灬i敳⁳楮gl攠
r敳e潮獩扩lity 灲楮捩灬攠eSRP) 慮搠摯d't r数敡t y潵r獥sf (DRY), 慮搠mak敳 敡捨⁣cm灯湥湴n of
愠Web 慰灬i捡瑩c渠桡n攠潮攠e敳e潮獩扩lity. It is 慬獯⁥st敮獩扬攬ew桩捨⁡clow猠摥vel
潰敲猠to
r数l慣a 慮y 捯浰潮cnt of t桥 獹獴em, 慮搠dt 灬慹猠w敬l wit栠潴桥rs.

Web 獩te猠cr敡t敤 批 t桩猠灲pj散t ty灥 畳u t桥 M潤敬
-
View
-
C潮tr潬l敲e(MVC) 灡tt敲e. I渠t桩猠
灡tter渠慬l req略獴s to th攠獩瑥ear攠r潵te搠t桲潵gh 愠捯atr潬l敲, w桩捨⁲整er湳⁴桥 慰
灲潰ri慴a
view f潲 摩獰s慹. If 摡t愠a猠req畩r敤 i渠t桥 vi敷, t桥 捯ctr潬l敲em慮ag敳⁡ m潤敬 捯ct慩湩湧 t桩猠
摡t愠慮a 慮y 捨cng敳eto t桥 m潤敬 req略st敤 批 t桥 vi敷.


S数慲慴i潮 of 捯c捥牮c i猠愠k敹 f敡tur攠ef ASP.NET MVC

慣a 捯m灯湥湴n桡s 潮攠
r敳e潮獩扩l
ity. T桩猠桡s t桥 f潬l潷i湧 扥湥fits:



T桥 慰灬i捡瑩c渠楳nm潲o 敡獩ly t敳瑡扬e



It 桥l灳⁷it栠捯湣畲r敮t d敶敬潰m敮t (e.g., 摥v敬潰敲猠捡c w潲欠潮 t桥 捯湴n潬l敲猬
摥獩g湥r猠潮 t桥 view猩



Et敮獩扬e

慮y 捯浰潮c湴ni渠t桥 慰灬i捡瑩cn 捡c 扥 r数l慣a搮


Apm.NbT

MsC w慳⁣桯獥a 批 䩥ff Atw潯搠d漠or敡t攠t桥 pt慣歏v敲fl潷.捯洠獩t攠慳 it 慶潩摳d
many of the issues associated with traditional Web Forms. StackOverflow.com is currently live
and running one of the preview releases of ASP.NET MVC.


List of demos

A Random
Web 2.0 Web Site
(
http://stackoverflow.com/
)

Example of a typical Web 2.0 site

1 min. into session

File | New

This demo starts with creating a new
ASP.NET MVC project in Visual Studio,
and explains the structure
and code
generated with the project. It also
introduces briefly about standard
conventions and testing different
framework which can be used in
projects.

10 min. into session

Let’s Build an Application!

Create a simple ASP.NET MVC
application. Retrieve li
st from database
to create model, controller to display list
in view, allow new items to be added,
and the items saved to the database.
Add AJAX support to view, CSS, and
JQuery for added interactivity. (long)

20 min. into session

Partner Sharing:
StackOv
erflow.com

Overview of the StackOverflow.com
source code: The CEO of
StackOverflow.com shares his
experience using ASP.NET MVC and
shows how they use ASP.NET MVC to
implement capture page for human
verification.

45 min. into session


Conclusion

ASP.NET
MVC is a new Web application project type that puts you in full control of your
ASP.NET Web applications. Not aimed to replace, but as an alternative to Web Forms it is a
fundamental part of the future ASP.NET. It is also extensible and provides a clean UR
L structure.



David Watson

Solution Architect, Microsoft Services, Australia Solution Development Center


http://www.microsoft.com/australia/services/microsoftse
rvices/srv_msdc.mspx


Xiaoying Guo

http://blogs.msdn.com/silverlightshanghai