ASP.NET MVC - Mashiur Group

saucecopywriterInternet and Web Development

Feb 2, 2013 (4 years and 9 months ago)

141 views

ASP.NET MVC


OVERVIEW


By
Muktadiur

Rahman


Date: 17/12/2009

ASP.NET MVC


What Is MVC


Who Are Using MVC


ASP.NET MVC


What Is Missing


When MVC


ASP.NET MVC or Web Form


Benefits of ASP.NET MVC




What Is MVC


An architectural pattern used to separate an


application into three main aspects


Model
. Set of classes that represent data and


business rules for how data can be changed and


manipulated


View
. Application’s user interface


Controller
. Set of classes that handles


communication from user, overall application flow,
and application
-
specific logic


What Is MVC

What Is MVC

What Is MVC

What Is MVC

What Is MVC

What Is MVC

What Is MVC

Who Are Using MVC


Java: Swing, Struts


Python: Django


PHP: CakePHP, Symfony


Ruby: Ruby on Rails


ASP .NET: Microsoft’s ASP .NET MVC


ASP.NET MVC


A new way to build highly
-
testable apps on



top of the
ASP.NET

Framework


No post
-
backs


Requests map to methods rather than pages


SEO
-
friendly URLs


Supports TDD and Unit Tests


Encourages use of design patterns and best


practices


ASP.NET MVC


ASP.NET

MVC

1.0


Requires
.NET

3.5 SP1 / Visual Studio 2008 SP1


Download Microsoft
ASP.NET

MVC

1.0 from



http://
asp.net
/
mvc


ASP.NET

MVC

2.0(In beta)


Will be part of Visual Studio 2010 /
ASP.NET

4.0

What Is Missing


Not as RAD as using Web Forms


No drag and drop experience


Doesn’t build on all your experience with


ASP.NET

server controls


When MVC


are disciplined and want to follow design


patterns and best practices


are interested in embracing unit tests


are interested in embracing TDD


are being told to use it by your employer/client


ASP.NET MVC or Web Form


Building an intranet site with lots of data editing



-
Web Forms may be better suited


Building an Internet site where HTML, performance, and
scalability are paramount




-
ASP.NET

MVC

may be better suited


Benefits ASP.NET MVC


You get REST URLS


Normal
ASP.NET



http://server/application/Products.aspx?id=4


ASP.NET

MVC



http://server/application/Products/show/beverages


You don't have to use the ".aspx" extensions (you never really did, but now it is easier to avoid).


Very clean, controlled HTML output. Less of what will show up is hidden from you, so you have a lot
more control over the generated HTML.


Testing becomes much easier. Web forms where very difficult to test. Because of the controllers instead
of the pages themselves handling things, testing becomes much easier.


It becomes far easier to optimize URLS for search engines. With Web Forms one needed to use URL
rewriters which merely hid what the
real

URL was.


With Web Forms there was a sense of
state
. Pages maintained their state between posts. This made
things a little bit easier, but this obfuscation hides how interactions between the client and the server
actually occur. MVC gives you much more control over the client
-
server interaction


THANK YOU





Q & A