<分区>
“ASP.NET AJAX 服务器控件”和“ASP.NET 服务器控件”项目类型有什么区别?
一种项目类型比另一种项目类型有优势吗?
是否有一些事情可以在一个中完成而另一个不能完成?
提前致谢。
编辑: 我找到了这个链接:http://www.codeproject.com/Articles/22384/ASP-NET-AJAX-Controls-and-Extenders
这是该链接的引述,我认为它回答了我的问题:
At first glance, it would seem that the ASP.NET Server Control differs from the other two controls in that it doesn't support AJAX. This isn't completely true, however, and in the first part of this tutorial, I will demonstrate just how far you can go in developing an AJAX-enabled control based on the Server Control alone. While the ASP.NET Server Control does not provide direct access to AJAX scripts, it can implement AJAX scripts encapsulated in other controls such as the UpdatePanel, or the AJAX Extensions Timer Control, to provide AJAX functionality. For control developers who are not all that keen on delving into the intricacies and pitfalls of JavaScript, the Server Control offers an excellent and clean development path.
The AJAX Server Control and the AJAX Server Control Extender differ from the regular ASP.NET Server Control by coupling themselves with JavaScript files, and allowing mapping between properties of a control class and properties of a JavaScript class. When you need functionality not provided by other AJAX Server controls, or simply want to customize your control using client-side script in order to avoid the ASP.NET control life-cycle, then this is the best option.
编辑 2:我刚刚看到 Aghilas Yakoub 的回答有相同的链接 :)