ASP.NET AJAX vs jQuery in ASP.NET MVC

后端 未结 10 1006
日久生厌
日久生厌 2020-12-07 19:08

Which one is better to use in ASP.NET MVC?

10条回答
  •  温柔的废话
    2020-12-07 19:46

    First of all, it could be useful to take in mind that ASP.NET MVC doesn't support, or better, doesn't has the postback concept..

    1. asp.net ajax it's based on the post-back, server-side mechanism, it's mission it's to make more easy to integrate ajax features in a server-side mode
    2. jQuery, as other frameworks (eg Extjs) implements a pure client-side ajax

    It's still possible to use asp.net server controls in asp.net mvc, asp.net ajax it's one of them, but asp.net mvc it's made, it was thought, to separate concerns (views) and to be REST styled as close as possible, so taking this in mind the final thought would be:

    1. Using ASP.NET Web Forms ASP.NET AJAX it's the right choiche
    2. Using ASP.NET MVC it's better to try to go client, so jQuery (or others) is the better

    Sorry for my english

提交回复
热议问题