SlideShare une entreprise Scribd logo
1  sur  4
Télécharger pour lire hors ligne
1.Difference between HTML Controls and ASP.NET Standard Controls

      S.No   HTML Controls                     ASP.NET Standard Controls

      1      All HTML Controls run at Client All ASP.NET Controls run at Server
             side                            side

      2      Can be made to run at Server side Can’t be made to run at Client side
             by      adding   runat=”server” rather equivalent HTML code is
             attribute                         generated on Rendering

      3      Rendering is NOT Required         Rendering is Required

      4      Execution is FAST                 Execution is SLOW

      5      Don’t contain any class for the Contains Separate class for each
             Controls                        Controls

      6      Don’t support Object Oriented Supports      Object            Oriented
             Programming features          Programming Features

      7      Don’t  provide           STATE Provides STATE MANAGEMENT
             MANAGEMENT

2.Difference between Response.Redirect and Server.Transfer

      S.No   Response.Redirect                 Server.Transfer

      1      Used to redirect to any webpage Used to redirect to any webpage in
             in any website                  current website only

      2      Can be used to pass the required Can’t be used to pass the required
             values from Source Page to Target values from Source Page to Target
             Page while redirecting            Page while redirecting

      3      Execution is Slow                 Execution is Fast

      4      Target page address      appears Target page address doesn’t appears
             within the address bar           within the address bar

      5      Refreshing of the page doesn’t Refreshing of the page causes error
             cause any error


3.Difference between ASP.NET and ASP.NET MVC

      S.No   ASP.NET                           ASP.NET MVC

      1      You need .NET framework to You need .NET framework                   &
             install ASP.NET.           ASP.NET to Install MVC.

      2      Supports Code behind        page Supports both Code behind page
             coding & Inline coding           coding & Inline coding but, we should
not use code behind as a practice
                                        because view should not perform any
                                        logic.

3    Pages are called Pages             Pages are called Views

4    There is a Life cycle for every There is tailored lifecycle of the page.
     page.                           By default you won't see the events
                                     when you create the Views but, you
                                     can add the Page Load event by in a
                                     script server tag. Again its not a good
                                     practice

5    We use Viewstate         concept There is no Viewstate for view. There
     extensively                      is no state of the controls. But state of
                                      the entire page can be maintained by a
                                      feature ModelBinders

6    Every Page is inherited from Every Page is inherited                from
     System.Web.UI.ViewPage       System.Web.Mvc.ViewPage.               View
                                  page     is     inherited              from
                                  System.Web.UI.Page.

7    You don't have the strongly typed You can create the Strongly typed
     pages                             Views using generics. It means, you
                                       can pass the object (Model) to the view
                                       page from the controller.

8    Has lot of inbuilt Controls that We cannot use the ASP.NET controls
     support RAD.                     because they don't support the
                                      ViewState    and     Postback.

                                        We have inbuilt methods called HTML
                                        Helper methods. These methods just
                                        create the required HTML in the
                                        response stream. You can create the
                                        user controls.

9    Has the limited control over the Since we have no controls and are
     HTML being generated by various writing HTML we have control over
     controls.                        the markup.

10   Logic    is    not    completely Logic is modularized in methods
     modularized in pages.            called Action methods of the
                                      controller.

11   Difficult to test the UI Logic MVC is designed to unit test every
     using unit tests.              part of the application. It strongly
                                    supports the TDD approach.

12   Doesn't support clean or search Support clean or search engine
     engine friendly URL's . ASP.NET friendly                      URL's
     4 has the routing module or else You can design to support the REST
we need to use URL rewrites.         based resources in application

13   Code behind supports only one Web request finally will reach the
     aspect of separation of concerns. controller. Requests never reach
                                       Views. Web user cannot identify a
                                       specific view on the server.

14   Web requests are reached             Web request finally will reach the
     directly to the intended page.       controller. Requests never reach
     Web users can identify the pages     Views. Web user cannot identify a
     on the server.                       specific view on the server.

15   If you rename the web pages the You don't need to change the URL,
     URL is changed                  even if you change the Controller and
                                     the View.

16   URLS are determined by the You have to define the URL formats
     folder structure of the pages which are called Routes. Framework
                                   will try to match the URL with all the
                                   defined     routes   in    an    order.
                                   Framework will hand over the request
                                   to the corresponding route Handler.

17   Query string are used as small URLS formats drive the inputs to the
     inputs to the pages            requests. You can also have
                                    querystrings

18   Related Pages are separated by Related Views are written under
     folder                         controller. And for each controller we
                                    need to create a folder for all its views.

19   We have ASP.NET AJAX                 MVC has some AJAX features but
     Framework and AJAX server side       internally it uses the ASP.NET AJAX
     controls to support AJAX page        script libraries. So we have to
     development                          manually include the libraries in the
                                          project. No support of AJAX Server
                                          side controls.

20   File extensions in IIS are mapped    There are no file extensions for MVC.
     to ASP.NET isapi dll and in          If deployed in IIS7 Internally it will
     web.config they are mapped to        use the MVC UrlRoutingModule to
     corresponding                 file   route the request to the MVC
     HTTPHandlers.                        framework.

21   All the Page requests are handled Each Route has the option to use a
     by PageFactory Handler.           default Route handler or custom
                                       handler. So all the page requests are
                                       handled by Route handles.

22   It's difficult to modify the internal It's designed to modify or replace the
     behavior of the core ASP.NET internal components. It supports the
     components.                           Plug-in                       structure
Example: - ASPX Pages are used to
                                               render the HTML. You can configure
                                               to not to use ASP.NET pages and use
                                               different     view    engines.


                                               There are many view engines available
                                               in market or you can create your own
                                               view engine.




And, further updates on difference between questions and answers, please visit my blog @
http://onlydifferencefaqs.blogspot.in/

Contenu connexe

Tendances

Modularize JavaScript with RequireJS
Modularize JavaScript with RequireJSModularize JavaScript with RequireJS
Modularize JavaScript with RequireJS
Minh Hoang
 
Angular js tutorial slides
Angular js tutorial slidesAngular js tutorial slides
Angular js tutorial slides
samhelman
 

Tendances (20)

Introduction to jsf 2
Introduction to jsf 2Introduction to jsf 2
Introduction to jsf 2
 
Mastering angular - Dot Net Tricks
Mastering angular - Dot Net TricksMastering angular - Dot Net Tricks
Mastering angular - Dot Net Tricks
 
Introduction to single page application with angular js
Introduction to single page application with angular jsIntroduction to single page application with angular js
Introduction to single page application with angular js
 
Java server faces
Java server facesJava server faces
Java server faces
 
What Is Angular 2 | Angular 2 Tutorial For Beginners | Angular Training | Edu...
What Is Angular 2 | Angular 2 Tutorial For Beginners | Angular Training | Edu...What Is Angular 2 | Angular 2 Tutorial For Beginners | Angular Training | Edu...
What Is Angular 2 | Angular 2 Tutorial For Beginners | Angular Training | Edu...
 
Require.JS
Require.JSRequire.JS
Require.JS
 
SPA Editing with Sling to the rescue - adaptTo() 2021
SPA Editing with Sling to the rescue - adaptTo() 2021 SPA Editing with Sling to the rescue - adaptTo() 2021
SPA Editing with Sling to the rescue - adaptTo() 2021
 
What's new in Angular 2?
What's new in Angular 2?What's new in Angular 2?
What's new in Angular 2?
 
Mvc
MvcMvc
Mvc
 
Intro to Ruby on Rails
Intro to Ruby on RailsIntro to Ruby on Rails
Intro to Ruby on Rails
 
Step by Step - AngularJS
Step by Step - AngularJSStep by Step - AngularJS
Step by Step - AngularJS
 
Angular 6 - The Complete Guide
Angular 6 - The Complete GuideAngular 6 - The Complete Guide
Angular 6 - The Complete Guide
 
Angular View Encapsulation
Angular View EncapsulationAngular View Encapsulation
Angular View Encapsulation
 
Modularize JavaScript with RequireJS
Modularize JavaScript with RequireJSModularize JavaScript with RequireJS
Modularize JavaScript with RequireJS
 
Angular js
Angular jsAngular js
Angular js
 
Angular js tutorial slides
Angular js tutorial slidesAngular js tutorial slides
Angular js tutorial slides
 
Asp.net mvc 5 course module 1 overview
Asp.net mvc 5 course   module 1 overviewAsp.net mvc 5 course   module 1 overview
Asp.net mvc 5 course module 1 overview
 
Angular js 1.3 basic tutorial
Angular js 1.3 basic tutorialAngular js 1.3 basic tutorial
Angular js 1.3 basic tutorial
 
Getting started with angular js
Getting started with angular jsGetting started with angular js
Getting started with angular js
 
Project Fedena and Why Ruby on Rails - ArvindArvind G S
Project Fedena and Why Ruby on Rails - ArvindArvind G SProject Fedena and Why Ruby on Rails - ArvindArvind G S
Project Fedena and Why Ruby on Rails - ArvindArvind G S
 

En vedette

Dotnet programming concepts difference faqs- 2
Dotnet programming concepts difference faqs- 2Dotnet programming concepts difference faqs- 2
Dotnet programming concepts difference faqs- 2
Umar Ali
 

En vedette (14)

Sql server difference faqs- 9
Sql server difference faqs- 9Sql server difference faqs- 9
Sql server difference faqs- 9
 
Dotnet programming concepts difference faqs- 3
Dotnet programming concepts difference faqs- 3Dotnet programming concepts difference faqs- 3
Dotnet programming concepts difference faqs- 3
 
Asp.net difference faqs- 9
Asp.net difference faqs- 9Asp.net difference faqs- 9
Asp.net difference faqs- 9
 
Dotnet programming concepts difference faqs- 2
Dotnet programming concepts difference faqs- 2Dotnet programming concepts difference faqs- 2
Dotnet programming concepts difference faqs- 2
 
History of islamic army generals in tamil
History of islamic army generals in tamilHistory of islamic army generals in tamil
History of islamic army generals in tamil
 
Difference between group by and order by in sql server
Difference between group by and  order by in sql serverDifference between group by and  order by in sql server
Difference between group by and order by in sql server
 
Tamil islamic q&a
Tamil islamic q&aTamil islamic q&a
Tamil islamic q&a
 
ADO.NET difference faqs compiled- 1
ADO.NET difference  faqs compiled- 1ADO.NET difference  faqs compiled- 1
ADO.NET difference faqs compiled- 1
 
.NET Differences List
.NET Differences List.NET Differences List
.NET Differences List
 
Internet marketing acronyms
Internet marketing acronymsInternet marketing acronyms
Internet marketing acronyms
 
Sql server difference faqs- 6
Sql server difference faqs- 6Sql server difference faqs- 6
Sql server difference faqs- 6
 
Dotnet difference questions & answers Compiled-1
Dotnet difference questions & answers Compiled-1Dotnet difference questions & answers Compiled-1
Dotnet difference questions & answers Compiled-1
 
OOPs difference faqs-3
OOPs difference faqs-3OOPs difference faqs-3
OOPs difference faqs-3
 
Difference between xml and json
Difference between xml and jsonDifference between xml and json
Difference between xml and json
 

Similaire à Asp.net difference faqs- 8

Developing an aspnet web application
Developing an aspnet web applicationDeveloping an aspnet web application
Developing an aspnet web application
Rahul Bansal
 
Lecture 05 - Creating a website with Razor Pages.pdf
Lecture 05 - Creating a website with Razor Pages.pdfLecture 05 - Creating a website with Razor Pages.pdf
Lecture 05 - Creating a website with Razor Pages.pdf
Lê Thưởng
 

Similaire à Asp.net difference faqs- 8 (20)

Difference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvcDifference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvc
 
Spring vs. asp.net mvc
Spring vs. asp.net mvcSpring vs. asp.net mvc
Spring vs. asp.net mvc
 
Introduction Asp.Net Core, MVC, Docker (Linux), Postman and Swagger
Introduction Asp.Net Core, MVC, Docker (Linux), Postman and SwaggerIntroduction Asp.Net Core, MVC, Docker (Linux), Postman and Swagger
Introduction Asp.Net Core, MVC, Docker (Linux), Postman and Swagger
 
Best of Microsoft Dev Camp 2015
Best of Microsoft Dev Camp 2015Best of Microsoft Dev Camp 2015
Best of Microsoft Dev Camp 2015
 
MVC 4
MVC 4MVC 4
MVC 4
 
Spring MVC Framework
Spring MVC FrameworkSpring MVC Framework
Spring MVC Framework
 
Codeigniter simple explanation
Codeigniter simple explanation Codeigniter simple explanation
Codeigniter simple explanation
 
Spring MVC framework features and concepts
Spring MVC framework features and conceptsSpring MVC framework features and concepts
Spring MVC framework features and concepts
 
Developing an aspnet web application
Developing an aspnet web applicationDeveloping an aspnet web application
Developing an aspnet web application
 
Aspose pdf
Aspose pdfAspose pdf
Aspose pdf
 
Journey Through The Javascript MVC Jungle
Journey Through The Javascript MVC JungleJourney Through The Javascript MVC Jungle
Journey Through The Javascript MVC Jungle
 
Top 10 Javascript Frameworks For Easy Web Development
Top 10 Javascript Frameworks For Easy Web DevelopmentTop 10 Javascript Frameworks For Easy Web Development
Top 10 Javascript Frameworks For Easy Web Development
 
Server side programming
Server side programming Server side programming
Server side programming
 
Lecture 05 - Creating a website with Razor Pages.pdf
Lecture 05 - Creating a website with Razor Pages.pdfLecture 05 - Creating a website with Razor Pages.pdf
Lecture 05 - Creating a website with Razor Pages.pdf
 
Difference between mvc 2 and mvc 3 in asp.net
Difference between mvc 2 and mvc 3 in asp.netDifference between mvc 2 and mvc 3 in asp.net
Difference between mvc 2 and mvc 3 in asp.net
 
Spring Portlet MVC
Spring Portlet MVCSpring Portlet MVC
Spring Portlet MVC
 
Mvc15 (1)
Mvc15 (1)Mvc15 (1)
Mvc15 (1)
 
Asp.net mvc
Asp.net mvcAsp.net mvc
Asp.net mvc
 
Single Page Application
Single Page ApplicationSingle Page Application
Single Page Application
 
Asp.Net difference faqs- 10
Asp.Net difference faqs- 10Asp.Net difference faqs- 10
Asp.Net difference faqs- 10
 

Plus de Umar Ali

Plus de Umar Ali (20)

Difference between wcf and asp.net web api
Difference between wcf and asp.net web apiDifference between wcf and asp.net web api
Difference between wcf and asp.net web api
 
Difference between ActionResult() and ViewResult()
Difference between ActionResult() and ViewResult()Difference between ActionResult() and ViewResult()
Difference between ActionResult() and ViewResult()
 
Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4
 
Difference between asp.net web api and asp.net mvc
Difference between asp.net web api and asp.net mvcDifference between asp.net web api and asp.net mvc
Difference between asp.net web api and asp.net mvc
 
ASP.NET MVC difference between questions list 1
ASP.NET MVC difference between questions list 1ASP.NET MVC difference between questions list 1
ASP.NET MVC difference between questions list 1
 
Link checkers 1
Link checkers 1Link checkers 1
Link checkers 1
 
Affiliate Networks Sites-1
Affiliate Networks Sites-1Affiliate Networks Sites-1
Affiliate Networks Sites-1
 
Technical Video Training Sites- 1
Technical Video Training Sites- 1Technical Video Training Sites- 1
Technical Video Training Sites- 1
 
US News Sites- 1
US News Sites- 1 US News Sites- 1
US News Sites- 1
 
How to create user friendly file hosting link sites
How to create user friendly file hosting link sitesHow to create user friendly file hosting link sites
How to create user friendly file hosting link sites
 
Weak hadiths in tamil
Weak hadiths in tamilWeak hadiths in tamil
Weak hadiths in tamil
 
Bulughul Maram in tamil
Bulughul Maram in tamilBulughul Maram in tamil
Bulughul Maram in tamil
 
Asp.net website usage and job trends
Asp.net website usage and job trendsAsp.net website usage and job trends
Asp.net website usage and job trends
 
Indian news sites- 1
Indian news sites- 1 Indian news sites- 1
Indian news sites- 1
 
Photo sharing sites- 1
Photo sharing sites- 1 Photo sharing sites- 1
Photo sharing sites- 1
 
File hosting search engines
File hosting search enginesFile hosting search engines
File hosting search engines
 
Ajax difference faqs compiled- 1
Ajax difference  faqs compiled- 1Ajax difference  faqs compiled- 1
Ajax difference faqs compiled- 1
 
Dotnet differences compiled -1
Dotnet differences compiled -1Dotnet differences compiled -1
Dotnet differences compiled -1
 
Difference between ajax and silverlight
Difference between ajax and silverlightDifference between ajax and silverlight
Difference between ajax and silverlight
 
Difference between is and as operators in c#
Difference between is and as operators in c#Difference between is and as operators in c#
Difference between is and as operators in c#
 

Dernier

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Dernier (20)

AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 

Asp.net difference faqs- 8

  • 1. 1.Difference between HTML Controls and ASP.NET Standard Controls S.No HTML Controls ASP.NET Standard Controls 1 All HTML Controls run at Client All ASP.NET Controls run at Server side side 2 Can be made to run at Server side Can’t be made to run at Client side by adding runat=”server” rather equivalent HTML code is attribute generated on Rendering 3 Rendering is NOT Required Rendering is Required 4 Execution is FAST Execution is SLOW 5 Don’t contain any class for the Contains Separate class for each Controls Controls 6 Don’t support Object Oriented Supports Object Oriented Programming features Programming Features 7 Don’t provide STATE Provides STATE MANAGEMENT MANAGEMENT 2.Difference between Response.Redirect and Server.Transfer S.No Response.Redirect Server.Transfer 1 Used to redirect to any webpage Used to redirect to any webpage in in any website current website only 2 Can be used to pass the required Can’t be used to pass the required values from Source Page to Target values from Source Page to Target Page while redirecting Page while redirecting 3 Execution is Slow Execution is Fast 4 Target page address appears Target page address doesn’t appears within the address bar within the address bar 5 Refreshing of the page doesn’t Refreshing of the page causes error cause any error 3.Difference between ASP.NET and ASP.NET MVC S.No ASP.NET ASP.NET MVC 1 You need .NET framework to You need .NET framework & install ASP.NET. ASP.NET to Install MVC. 2 Supports Code behind page Supports both Code behind page coding & Inline coding coding & Inline coding but, we should
  • 2. not use code behind as a practice because view should not perform any logic. 3 Pages are called Pages Pages are called Views 4 There is a Life cycle for every There is tailored lifecycle of the page. page. By default you won't see the events when you create the Views but, you can add the Page Load event by in a script server tag. Again its not a good practice 5 We use Viewstate concept There is no Viewstate for view. There extensively is no state of the controls. But state of the entire page can be maintained by a feature ModelBinders 6 Every Page is inherited from Every Page is inherited from System.Web.UI.ViewPage System.Web.Mvc.ViewPage. View page is inherited from System.Web.UI.Page. 7 You don't have the strongly typed You can create the Strongly typed pages Views using generics. It means, you can pass the object (Model) to the view page from the controller. 8 Has lot of inbuilt Controls that We cannot use the ASP.NET controls support RAD. because they don't support the ViewState and Postback. We have inbuilt methods called HTML Helper methods. These methods just create the required HTML in the response stream. You can create the user controls. 9 Has the limited control over the Since we have no controls and are HTML being generated by various writing HTML we have control over controls. the markup. 10 Logic is not completely Logic is modularized in methods modularized in pages. called Action methods of the controller. 11 Difficult to test the UI Logic MVC is designed to unit test every using unit tests. part of the application. It strongly supports the TDD approach. 12 Doesn't support clean or search Support clean or search engine engine friendly URL's . ASP.NET friendly URL's 4 has the routing module or else You can design to support the REST
  • 3. we need to use URL rewrites. based resources in application 13 Code behind supports only one Web request finally will reach the aspect of separation of concerns. controller. Requests never reach Views. Web user cannot identify a specific view on the server. 14 Web requests are reached Web request finally will reach the directly to the intended page. controller. Requests never reach Web users can identify the pages Views. Web user cannot identify a on the server. specific view on the server. 15 If you rename the web pages the You don't need to change the URL, URL is changed even if you change the Controller and the View. 16 URLS are determined by the You have to define the URL formats folder structure of the pages which are called Routes. Framework will try to match the URL with all the defined routes in an order. Framework will hand over the request to the corresponding route Handler. 17 Query string are used as small URLS formats drive the inputs to the inputs to the pages requests. You can also have querystrings 18 Related Pages are separated by Related Views are written under folder controller. And for each controller we need to create a folder for all its views. 19 We have ASP.NET AJAX MVC has some AJAX features but Framework and AJAX server side internally it uses the ASP.NET AJAX controls to support AJAX page script libraries. So we have to development manually include the libraries in the project. No support of AJAX Server side controls. 20 File extensions in IIS are mapped There are no file extensions for MVC. to ASP.NET isapi dll and in If deployed in IIS7 Internally it will web.config they are mapped to use the MVC UrlRoutingModule to corresponding file route the request to the MVC HTTPHandlers. framework. 21 All the Page requests are handled Each Route has the option to use a by PageFactory Handler. default Route handler or custom handler. So all the page requests are handled by Route handles. 22 It's difficult to modify the internal It's designed to modify or replace the behavior of the core ASP.NET internal components. It supports the components. Plug-in structure
  • 4. Example: - ASPX Pages are used to render the HTML. You can configure to not to use ASP.NET pages and use different view engines. There are many view engines available in market or you can create your own view engine. And, further updates on difference between questions and answers, please visit my blog @ http://onlydifferencefaqs.blogspot.in/