Web developer can use the Application object to execute some code when the page is loaded in ASP.NET Ajax. In jQuery, Web developer can write a method and then pass it to the $ method:

C# in Depth, 3rd Edition

$( func() {
alert (“Page loaded”);
});

Web developer can put any logic inside the method. By using jQuery Web developer gets the same result with less code than ASP.NET Ajax.