什么是ASP.net AJAX的ASP.net MVC的地步? [英] What's the point of ASP.net AJAX in ASP.net MVC?

查看:136
本文介绍了什么是ASP.net AJAX的ASP.net MVC的地步?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以ASP.net MVC默认情况下,同时附带了jQuery和ASP.net阿贾克斯。虽然JQuery的用例是显而易见的,大量的,我只是想知道ASP.net阿贾克斯点是什么?如果我有我的控制器动作返回JSON,我并不需要它?另外,如果您使用Web表单视图引擎(我想,我想用一个又一个,但是这不是重点)的老字​​号ASP.net仅控制工作。

So ASP.net MVC by default ships with both JQuery and ASP.net Ajax. While the use cases of JQuery are obvious and plenty, I just wonder what the point of ASP.net Ajax is? If I just have my Controller Actions return JSON, I don't need it? Also, any "old" ASP.net controls only work if you use the Webforms view Engine (I think I want to use another one, but that's not the point).

发生了什么ASP.net Ajax来在MVC环境提供?

What has ASP.net Ajax to offer in an MVC Environment?

推荐答案

ASP.NET AJAX是有点距离JQuery的不同,它是有点东西,一个大型图书馆,并允许你使用类似命名的API,你会典型。 .NET编程。你有更多的字符串函数等等。话虽这么说,我通常完全绕过ASP.NET AJAX和发现大多数的什么,我需要在jQuery和其他小型图书馆。 ASP.NET AJAX是我的口味有点头重脚轻,但它确实有它的用途。

ASP.NET AJAX is a bit different from JQuery it is sort of a large library of stuff and allows you to use similarly named APIs as you would in typical .NET programming. You have a bit more string functions and so forth. That being said, I typically bypass ASP.NET AJAX altogether and find most of what I need in JQuery and other smaller libraries. ASP.NET AJAX is a bit top heavy for my tastes but it does have its uses.

这篇关于什么是ASP.net AJAX的ASP.net MVC的地步?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆