.Net Interview Questions and Answers

Search:

MVC vs ASP.NET ( MVC Interview question with answers )?

By : Shiv Prasad Koirala | Sep 7th, 2013 | Views : 30234 | Comments : 0 Bookmark and Share

Microsoft initially wanted to bring out Visual development in website development. For that it came up with something called Asp.net Web Forms. Then with visual studio 2008 they came up with second flavor of Asp.net that is Asp.net MVC.

 

Now the biggest question is if Asp.Net web Form was already there why Asp.Net MVC introduced?

 

 

Asp.net Web Forms

Asp.Net MVC

Control over HTML

Less control over HTML generated. Example Asp.net Label will be rendered as span in chrome and IE but rendered as label tag in Mozilla.

In Asp.Net MVC Server controls are not supported so only choice left with us is using HTML controls and so we get complete control over Generated HTML.

Architecture

There is no Fixed architecture for Asp.net Web Forms.

Project structure is predefined.

Unit Testing support

Automatic unit testing of code behind classes is very difficult.

There is no code behind. We have Controller and Model classes. Both of which are simple classes so can easily be tested.

Performance

Viewstate increases the size of the page affecting performance.

No Viewstate so better performance.

Parallel development

The time when one developer will be working on ASPX, second developer may can't work on code behind (because he is unaware about the controls other developer is adding - specially id of the controls)

The time when one developer will be working on View, second developer may work on controller.

Less Learning effort

Easy to learn

Difficult when compared to Web Forms

RAD

Best for Rapid application development.

Not best one.

 

Further reading recommended:-

 

If you are preparing for .NET and MVC interviews , this is an awesome book which covers more than 1000 interview questions for .NET interviews http://www.flipkart.com/net-interview-questions-6th/p/itmdyuqzdqx8cvqx

 

MVC interview question with answers videos :- www.questpond.com

 

Great code project article , 50 great MVC interview questions with answers http://www.codeproject.com/Articles/556995/Model-view-controller-MVC-Interview-questions-and

 

 What is WEB API in MVC :- http://www.dotnetinterviewquestions.in/article_aspnet-mvc-interview-questions:-what-is-webapi-in-mvc-_138.html

 
Rate this Article :
1 Star
2 Stars
3 Stars
4 Stars
5 Stars
1 1 1 2 1
 
 
 
 

.NET interview questions 6th edition (Sixth edition) - By Shivprasad Koirala

In this article we will explain .NET interview questions 6th edition (Sixth edition) - By Shivprasad Koirala.... Read More

What is the difference between Stored Procedures and Function (SQL Server interview question with answers)?

In this article we will explain what is the difference between Stored Procedures and Function.For more articles and videos visit us on www.questpond.com... Read More

Explain MVC application life cycle?

In this article we will explain MVC application life cycle.For more articles and videos visit us on www.questpond.com... Read More

C# Design pattern interview questions with answers: - How Singleton is different from Static class?

In this article we will explain How Singleton is different from Static class.... Read More

WCF interview questions and answers: - What is the difference between Service endpoint and Client endpoint?

In this article we will explain What is the difference between Service endpoint and Client endpoint.... Read More

.NET interview questions 6th edition (Sixth edition) - By Shivprasad Koirala

In this article we will explain .NET interview questions 6th edition (Sixth edition) - By Shivprasad Koirala.... Read More

What is the difference between Stored Procedures and Function (SQL Server interview question with answers)?

In this article we will explain what is the difference between Stored Procedures and Function.For more articles and videos visit us on www.questpond.com... Read More

Explain MVC application life cycle?

In this article we will explain MVC application life cycle.For more articles and videos visit us on www.questpond.com... Read More

C# Design pattern interview questions with answers: - How Singleton is different from Static class?

In this article we will explain How Singleton is different from Static class.... Read More

WCF interview questions and answers: - What is the difference between Service endpoint and Client endpoint?

In this article we will explain What is the difference between Service endpoint and Client endpoint.... Read More

Article Categories

Learn in Hindi