ASP.Net VS ASP.Net MVC

Now it’s not a question of which technology is better, since they both have corresponding applications for different scenarios.

My question is about the syntax of two. How is their syntax different?

+3
source share
4 answers

ASP.NET MVC (as the name suggests) is still ASP.NET. It simply adds an extra layer that implements the Model-View-Controller method. Views are just old ASPX pages, controllers are just old C # / VB.NET classes that inherit from the Controller class. The only significant difference (among other things, MVC thinking, of course) is that the code files are not used by default. You can still create them yourself.

+5
source

The syntax is almost the same. You are still writing C # or VB code. The only difference is that you do not have the code as it is divided into controllers. Your views may contain some logic in the form of ASP tags (<% =%>).

+2
source

MVC Webforms HttpHandlers, .

MVC html, ( ), Webforms (aka ASP.Net) Html .

, MVC (, <asp:DataGrid />), , , html, .

, ( MVC), .

+2

There are no better things that have their pros and cons. It depends on your need for how you want to develop this application. Both have an advantage or disadvantage.

0
source

Source: https://habr.com/ru/post/1708532/


All Articles