ASP.NET AJAX: Difference between revisions

Content deleted Content added
External links: clean up using AWB
m Adding local short description: "Set of ASP.NET extensions", overriding Wikidata description "a set of ASP.NET extensions" (Shortdesc helper)
 
(30 intermediate revisions by 18 users not shown)
Line 1:
{{Short description|Set of ASP.NET extensions}}
'''ASP.NET AJAX''' is a set of extensions to [[ASP.NET]] developed by [[Microsoft]] for implementing [[Ajax (programming)|Ajax]] functionality. It is released under the [[Microsoft Public License]] (Ms-PL).
{{Infobox software
| name = ASP.NET AJAX
| author = [[Microsoft]]
| developer =
| released = {{Start date and age|2007|01|23}}
| latest release version =
| latest release date =
| repo =
| operating system = [[Microsoft Windows]], [[Linux]], [[macOS]]
| genre = [[Software framework]]
| license = [[Microsoft Public License]]
| website = {{URL|http://ajax.asp.net/}}
}}
'''ASP.NET AJAX''', formerly called Atlas, is a set of extensions to [[ASP.NET]]<ref>[https://download.cnet.com/ASP-NET-AJAX-1-0/3000-10250_4-10725541.html ASP.NET AJAX 1.0 - Free download and software reviews - CNET Download.com]</ref> developed by [[Microsoft]] for implementing [[Ajax (programming)|Ajax]] functionality. It is released under the [[Microsoft Public License]] (Ms-PL).<ref>[https://weblogs.asp.net/scottgu/asp-net-ajax-1-0-released ScottGu's Blog - ASP.NET AJAX 1.0 Released]</ref>
 
==Clients supporting Ajax==
 
ASP.NET AJAX runs on the following browsers:
* Microsoft [[Internet Explorer]] (>= 6.0)
* [[Mozilla Firefox]] (>= 1.5)
* [[Opera (web browser)|Opera]] (>= 9.0)
* [[Apple Safari]] (>= 2.0)
* [[Google Chrome]] (>= 5)
 
==ASP.NET AJAX Suite==
Line 20 ⟶ 33:
==Microsoft Ajax Library==
The Microsoft Ajax Library is a JavaScript library that provides the features for the client portion of the ASP.NET AJAX framework.
-* Components – The library provides an infrastructure to build either visual or non-visual JavaScript components. A global JavaScript object – Sys{{Not a typo|.}}Application – is responsible for managing the lifecycle of client components.
-* JavaScript extensions – An enhanced type system is introduced to emulate object-oriented constructs such as namespaces, classes and interfaces; and to perform reflection on client types.
 
-* Abstraction API – Common operations on the DOM (retrieving elements, setting styles and other manipulations) are automatically translated by the library into browser-specific calls.
- JavaScript extensions – An enhanced type system is introduced to emulate object-oriented constructs such as namespaces, classes and interfaces; and to perform reflection on client types.
-* Ajax – A set of client components is provided to handle Ajax requests and [[Web service|web-service]] calls.
 
-* Application Services – The library allows accessing the ASP.NET Membership, Authentication, Roles and Profile services from the client side.
- Abstraction API – Common operations on the DOM (retrieving elements, setting styles and other manipulations) are automatically translated by the library into browser-specific calls.
 
- Ajax – A set of client components is provided to handle Ajax requests and [[Web service|web-service]] calls.
- Application Services – The library allows accessing the ASP.NET Membership, Authentication, Roles and Profile services from the client side.
 
Recently, new features have been announced as part of the ASP.NET AJAX 4.0 release:
-* Template Engine – Allows displaying data on the client side by using HTML templates and a custom binding notation. This approach avoids performing page rendering on the server side.
-* Declarative instantiation of client components – Allows registration, instantiation and configuration of client components using markup code, without writing any imperative JavaScript code.
 
-* Live Bindings – Synchronize "element properties".
- Declarative instantiation of client components – Allows registration, instantiation and configuration of client components using markup code, without writing any imperative JavaScript code.
 
- Live Bindings – Synchronize "element properties".
 
==The UpdatePanel Control==
The UpdatePanel is an ASP.NET server control that updates portions of a web page without reloading it. Through a mechanism called asynchronous [[postback]], the HTML for the region of the page wrapped by the control is sent by the server asynchronously through an Ajax request.
 
The ASP.NET controls that have been specified as content in an UpdatePanel are able to cause either synchronous (traditional) or asynchronous postbacks, by means of triggers.
 
Line 45 ⟶ 52:
In the following code, only the content of the Update control (the span element that displays the current date and time) is re-rendered every time the button is clicked.
 
<sourcesyntaxhighlight lang="xml">
<asp:Button ID="Button1" runat="server" Text="Refresh" />
 
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
</Triggers>
<ContentTemplate>
<span><%= DateTime.Now %></span>
</ContentTemplate>
</asp:UpdatePanel>
</syntaxhighlight>
</source>
 
==Web-services and JSON==
ASP.NET AJAX framework brings [[JSON]] serialization features to the ASP.NET web-services and allows calling web-services from [[client-side JavaScript]], even using third-party JavaScript-libraries like [[jQuery]].
 
==See also==
{{Portal|Free and open-source software}}
* [[Ajax framework]]
 
==References==
{{reflistReflist}}
 
==Further reading==
* {{Cite book|author1=Laurence Moroney|author2=Robin Pars|author3=John Grieb|title=Foundations of ASP.NET AJAX|year=2010|publisher=[[Apress]]|isbn=978-1590598283|edition=2}}
 
==External links==
{{Wikibooks|.NET Development Foundation}}
* [http://asp.net-informations.com/ajax/ajax.htm ASP.NET AJAX Tutorial)]
* [http://ajax.asp.net/ ASP.NET AJAX (formerly "Atlas")]
* [http://msdn.microsoft.com/en-us/magazine/cc163574.aspx Atlas At Last : ASP.NET Atlas Powers the AJAX-Style Sites You’ve Been Waiting For]
* [http://searchvb.techtarget.com/originalContent/0,289142,sid8_gci1176426,00.html?Offer=VBwikiatlasmg Microsoft Atlas Mini-Guide] from SearchVB.com - Registration Required
* [http://www.ajaxlines.com/ajax/stuff/article/ajax_tools_for_aspnet_developers.php Ajax Tools for ASP.NET Developers]
* [http://www.tipsdotnet.com/ArticleBlog.aspx?KWID=2&Area=AJAX&PageIndex=0 ASP.NET AJAX Articles selection]
* [http://www.ajaxtoolkit.net AJAX Control Toolkit]
 
{{.NET Framework}}
{{Microsoft FOSS}}
{{Web frameworks}}
 
{{DEFAULTSORT:Asp.Net Ajax}}
[[Category:ASP.NET|AJAX]]
[[Category:Ajax (programming)]]
[[Category:ASP.NET|AJAX]]
[[Category:Free and open-source software]]
[[Category:Microsoft free software]]
[[Category:Software using the MS-PL license]]