Why MVC instead of good old ASP.NET? Still not grasping why I should go this route?

后端 未结 7 595
谎友^
谎友^ 2021-01-31 20:40

I know this question has been asked before and I read all the answers but they still don\'t give me the answers I am looking for. I need something concrete. I volunteered to g

7条回答
  •  逝去的感伤
    2021-01-31 21:28

    Control over the HTML output - is one thing. All those fancy controls SERIOUSLY SUCK from a SEO point of view.

    Plus for COMPLEX forms, the ASP.NET state model is hell, too ;)

    Anyhow, an example is your search box... it sucks ;)

    I would use MVC like this:

    Search is a URL: /search/keyword or /search/keyword/pagenr (like /search/programming/5

    Good thing is: I can easily have search results spidered by google - some sites I Know get most hits from something like that.

    Is it harder to program than asp.net - depends whether you want efficient HTML or not. THe control model from ASP.NET does not lead to lean defined HTML somehow.

    Besides that - MVC is a lot more testable. Unit testing a classical HTML site is pretty impossible, the decoupled model of MVC makes that easier.

提交回复
热议问题