A set of technologies in the .NET Framework for building web applications and XML web services.
webforms used a control tree.
- in the on-init built a control tree from the webform.aspx template.
- then it loaded any postback data to the control tree.
- then it fired unload, when you could update the tree.
- then it faked click/submit events based on postback values
- the control tree is then rendered to html
MVC is a simpler request / response
- routing picks controller action
- an instance of the controller is created
- any postback data is bound the action parameters
- the controller action is called and returns an action result set (often a view)
- the action result is called to produce the response (typically html)
with mvc you can have separate get/post actions or use the same code. html submit button pst their name and value, so an action can detect which button caused the postback.
razor views are template engine, not a component tree.
if you are moving to net 8 from webforms, you probably should pick razor pages. while the processing model is similar to MVC, it simplified to a view and optional code behind.