When to use ASP.NET MVC vs. ASP.NET Web Forms?

前端 未结 6 1442
梦毁少年i
梦毁少年i 2020-12-09 09:23

One of the common questions asked regarding ASP.NET MVC is why should you use it over ASP.NET Web Forms? The answer generally includes ViewState and clean URLs, amongst oth

6条回答
  •  悲&欢浪女
    2020-12-09 09:36

    I'll give you a couple purposes, with clear advantages.

    • If your purpose is a public facing website that will be banking on traffic, use MVC. It is optimal for search engine optimization.

    • If your purpose is an enterprise web-application that acts like a desktop app, I would lean towards web forms, since state management and compartmentalization of your resources into underlying server controls offers huge advantages if used correctly.

提交回复
热议问题