ASP.NET AJAX vs jQuery in ASP.NET MVC

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

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

10条回答
  •  佛祖请我去吃肉
    2020-12-07 19:39

    First of all, you could use either, as long as when you are talking about Microsoft Ajax, you are only referring to the client library. You can use the MS Ajax client library and most of the toolkit extenders without any server side controls. I have built a pretty big application using web forms and Microsoft Ajax then converted it to MVC/jquery. I found that I was using less and less of the features in the MS Ajax library. There is so much available with plugins, that its making even the ajax toolkit obsolete.

    If you are talking about MS Ajax using update panels etc, then I would say no, you can't use them in MVC. In fact, don't use them at all! update panels are simulated ajax, the page still goes through its lifecylce almost defeating the purpose of using ajax.

提交回复
热议问题