Articles → ASP .NET MVC → Benefit of not having viewstate in MVCBenefit of not having viewstate in MVCIn this article, we will see the benefit of not having view state in MVC. For that, we will create 2 applications 1. Traditional web form application. 2. ASP.NET MVC applicationAfter that, we will run both the applications and check the rendered HTML using ‘view source’ of the web browser.Rendered HTML for traditional Web form application In traditional web application, you can see a hidden field ‘__VIEWSTATE’ that contains forms data in encrypted formatClick to EnlargeThis is the form data that is submitted to the web server with every post back. So the viewstate adds an overhead.Rendering HTML for ASP.NET MVC application In MVC, there is no view state so there is no overhead and response time is better as compared to traditional web form application.Click to EnlargeSo performance wise asp.net MVC is better as compared to traditional web form application.Posted By - Karan Gupta Posted On - Sunday, July 12, 2015 Query/Feedback Your Email Id Subject Query/Feedback Characters remaining 250
Query/Feedback