MVC vs Code Behind
MVC vs Code Behind So when ASP.NET Webform was so successful, why Microsoft thought of creating ASP.NET MVC.The main problem with ASP.NET Webform is performance, performance and performance. In web application there are two aspects which define performance:- Response time: - How fast the server responds to request?. Bandwidth consumption: - How much data is sent ?. Response time issues Let us try to understand why response time is slower when it comes to ASP.NET Webforms. We did a small load testing experiment of Webform vs Asp.Net MVC and we found Asp.Net MVC to be twice faster. Read more on how this test was done from here Let us try to understand why ASP.NET MVC was better in performance in the above load test.Consider the below simple UI code and Code behind for that UI. Assume the ASPX code has the below simple text box. Hide Copy Code < asp:TextBox ID =" TextBox1" runat =" server" > In the code behind you have wri...