Skip to main content

Do you know why MVC is better than ASP.NET?

Why MVC is better than ASP.NET?

  • ASP.net is the old standard for web forms.
  • I know ASP.net mvc is a newer framework.
  • ASP.net MVC was created in 2007 or 2008.
  • The model-view-controller pattern tries to separate data, logic and the presentation of both to the user. That's one of the basic things they teach you in computer science.
  • When you separate these layers, you can change the view based on the user's input without altering the presentation.
  • AKA, changing buttons and menu options on a user's screen without losing the data they've put in because that is saved somewhere other than the life cycle workflow ASP.net uses.

  • MVC lets you execute part of the code on the client, lessening demand on the server. And, sometimes, increasing response time as a result of the local processing.
  • I had not heard that it increased performance.
  • It can, but doesn't always. But MVC always has easier integration with JavaScript frameworks. And MVC is the standard of the stateless web, since it is IT agnostic.
  • What is IT agnostic?
  • It does not care what device it is being viewed on or browser being used.
  • What other advantages does MVC have?
  • MVC lets you create nested views.
  • I think JavaScript or even CSS pretty much renders that moot.
  • MVC provides greater control over all rendered HTML.
  • Why else would someone consider MVC better? Sharepoint in ASP.net is considered an excellent resource because its developers are hardly better than code monkeys, pointing and clicking options on lifecycles and templates.
  • MVC lets you separate the data processing from the interface. If you need to change the screens the user sees, you don't have to rewrite the data handling, too.
  • That's a significant improvement.
  • And if you don't have to rewrite the whole thing, you don't have to retest the whole thing.

Comments

Popular posts from this blog

.NET Core API With Dapper, Repository And UnitOfWork

  Introduction In this tutorial, you will use ASP.NET Core Web API to create a web API that returns a list of brands. This article focuses on creating web API using dapper, repository pattern, and UnitOfWork pattern in .NET 8. I will guide you through the steps by step to create web API. HTTP is not just for serving up web pages. HTTP is also a powerful platform for building APIs that expose services and data. HTTP is simple, flexible, and ubiquitous. Almost any platform that you can think of has an HTTP library, so HTTP services can reach a broad range of clients, including browsers, mobile devices, and traditional desktop applications. ASP.NET Core Web API is a framework for building web APIs on top of the .NET Framework. Creating a New Project in Visual Studio Launch Visual Studio and select Create a New Project. Creating a Core Web API Start Visual Studio and choose Create a new project. In the Create a new project dialog, select ASP.NET Core Web API Click Next. Configuring You...

.Net framework interview questions

What is the .NET Framework? The .NET Framework is a set of technologies that form an integral part of the .NET Platform. It is Microsoft’s managed code programming model for building applications. The .NET Framework has two main components: Common Language Runtime (CLR): The CLR is one of the foundation in the .NET framework and provides a common set of services for applications developed on Microsoft .Net Technologies. .NET Framework class library: The .NET framework class library is a collection of reusable types and exposes features of the runtime. It contains of a set of classes that is used to access common functionality. What is CTS (Common Type System)? The common type system (CTS) defines how types are declared, used, and managed in the runtime, and is also an important part of the runtime’s support for cross-language integration. The common type system performs the following functions: ·          Establishes a framework that...

Move Selected Gridview Rows to Another Gridview in Asp.net

Introduction :  Here I will explain how to move or transfer selected checkbox gridview rows to another  grid v iew in asp.net using c#, vb.net or copy one gridview row to another gridview in asp.net using c#, vb.net. Description :  In previous posts I explained Display images in gridview from database in asp.net, Enable/Disable checkbox in gridview based on condition,  asp.net gridview examples  and  bind data to textbox control in gridview ,  Bind data to dropdownlist  in gridview  and many articles relating to  asp.net,  c#, vb.net, c#,vb.net. Now I will explain how to move selected rows from one gridview to another gridview in asp.netusing c#, vb.net. To implement this first we need to write the code in aspx page like this  < html   xmlns ="http://www.w3.org/1999/xhtml"> < head > ...