将 jQuery for AJAX 与 ASP.NET Webforms 一起使用

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/202538/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-26 08:45:58  来源:igfitidea点击:

Using jQuery for AJAX with ASP.NET Webforms

asp.netjqueryajaxwebforms

提问by Mark Struzinski

Anyone know of a link to a good article/tutorial for getting started using jQuery for AJAX calls rather than ASP.NET AJAX? I'm trying to avoid using UpdatePanels entirely in this app, which I haven't been able to accomplish in the past.

任何人都知道有关开始使用 jQuery 进行 AJAX 调用而不是 ASP.NET AJAX 的好文章/教程的链接吗?我试图避免在这个应用程序中完全使用 UpdatePanels,这是我过去无法完成的。

回答by Steve Nelson

The most complete article I've ever found about this topic

我找到的关于这个主题的最完整的文章

http://www.codeproject.com/KB/ajax/AjaxAndAspNET.aspx

http://www.codeproject.com/KB/ajax/AjaxAndAspNET.aspx

It avoids update panel, script manager and viewstate.

它避免了更新面板、脚本管理器和视图状态。

回答by Eric Falsken

Damien Edwards just gave an awesome talk on this topic at the recent MIX11 conference. You can watch the video onlineand download his code. He developed a jquery-UI extenders project that works the same way that ASP.NET AJAX toolkit works, but just extends normal controls/tags/elements with jQuery functionality. The project is on CodePlex.

Damien Edwards 在最近的 MIX11 会议上就这个话题发表了精彩的演讲。您可以在线观看视频并下载他的代码。他开发了一个 jquery-UI 扩展器项目,其工作方式与 ASP.NET AJAX 工具包的工作方式相同,但只是使用 jQuery 功能扩展了普通控件/标签/元素。该项目位于CodePlex 上