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?
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.
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 (<% =%>).
MVC Webforms HttpHandlers, .
MVC html, ( ), Webforms (aka ASP.Net) Html .
, MVC (, <asp:DataGrid />), , , html, .
<asp:DataGrid />
, ( MVC), .
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.
Source: https://habr.com/ru/post/1708532/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1708527/linq2sql-insert-records-to-related-tables&usg=ALkJrhi5X3G6ggI4SOpoH4rua62wHz2y_QPython-fastcgi extension - pythonHow to add multiple dependent records in LINQ2SQL - linqWPF DataGrid - Combining TimeSeries with MultiBinding, will lose notification of a change. What for? - data-bindingASP.NET Forms autosave - javascriptSafe injection call in IAxaptaRecord.ExecuteStmt () - axaptaudocumented apis for iphone that passed - apiЕсть ли способ обнаружить изменение DOM-w630 в Javascript? - javascriptКак провести аудит базы кода, чтобы найти код, который больше не используется/не требуется? - phphow to send and then read \ n using SocketChannel in Java - javaAll Articles