Timer in ASP.NET Ajax

This entry is part 13 of 13 in the series ASP.NET Ajax

While working with asynchronous postbacks we might want these postback to happen after a specific interval, this can be done using Timer control. This has an event called “OnTick” that is used to specify a server side event that fires after every specified interval in the “Interval” property.
Continue reading…

Enjoyed this post? Share it!

 
 

UpdateProgress in ASP.NET Ajax

This entry is part 12 of 13 in the series ASP.NET Ajax

UpdateProgress control is used to display a feedback about the action being performed by ASP.NET Ajax. This feedback can be in the form of some image or a text (eg. processing … or please wait ….). This control has one sub-element ProgressTemplate – used to specify the content that should appear when partial post back […]
Continue reading…

Enjoyed this post? Share it!

 
 

How to conditional update UpdatePanel in ASP.NET Ajax?

This entry is part 11 of 13 in the series ASP.NET Ajax

If more than one UpdatePanel is placed on the page and there is a need of a. Updating only a specific UpdatePanel, we can set UpdateMode as “Conditional” to all the UpdatePanels so that only corresponding UpdatePanel will update on an action. b. Updating all UpdatePanel on any action, we can set UpdateMode as “Always” […]
Continue reading…

Enjoyed this post? Share it!

 
 

UpdatePanel in ASP.NET Ajax

This entry is part 10 of 13 in the series ASP.NET Ajax

Update Panel is used to update the partial portion of the web page. It has two sub elements 1. ContentTemplate – used to specify the content need to update partially (Look at UpdatePanelSimple.aspx page) 2. Triggers a. AsyncPostBackTrigger – used to associate a control outside update panel that will trigger the asynchronous postback. Whatever content […]
Continue reading…

Enjoyed this post? Share it!

 
 

ScriptManager in ASP.NET Ajax

This entry is part 9 of 13 in the series ASP.NET Ajax

In order to work with ASP.NET AJAX, an .aspx page must have a ScriptManager tag. Without it ASP.NET AJAX doesn’t work as it provides necessary framework to work with UpdatePanel and other ASP.NET AJAX Server controls. Some of the frequently used properties EnableCdn – used to specify if the page loads the script reference for […]
Continue reading…

Enjoyed this post? Share it!

 
 

String extension in ASP.NET AJAX

This entry is part 8 of 13 in the series ASP.NET Ajax

ASP.NET AJAX client side framework also extends the string type to add support for the .NET like methods. <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title>Client Side Event in ASP.NET Ajax</title> <script language="javascript" type="text/javascript"> function pageLoad() { var string = "w3mentor.com"; alert(string.endsWith("com")); alert(string.startsWith("w3")); } </script> </head> <body> <form id="form1" runat="server"> <div> ASP.NET AJAX Demo Page <asp:ScriptManager runat="server" […]
Continue reading…

Enjoyed this post? Share it!

 
 

Array extensions in ASP.NET AJAX client side framework

This entry is part 7 of 13 in the series ASP.NET Ajax

ASP.NET AJAX client side framework also extend the JavaScript array object and provides ability to work with the array in the similar way as we work in the server side. Create an .aspx page and write the below code. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html […]
Continue reading…

Enjoyed this post? Share it!

 
 

PageLoad event in ASP.NET AJAX using ScriptManager

This entry is part 6 of 13 in the series ASP.NET Ajax

Create an ASP.NET page and write following code in aspx page (overwrite existing code). Run your page. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Client Side Event in ASP.NET Ajax</title> <script language="javascript" type="text/javascript"> function pageLoad() { alert("Page load fires"); } </script> </head> <body> […]
Continue reading…

Enjoyed this post? Share it!

 
 

Client Side Script Library in ASP.NET Ajax

This entry is part 4 of 13 in the series ASP.NET Ajax

The client library contains mainly five components as listed above. Apart from above, there is browser integration component that works in between to send the request and placing the response in the browser window. Client side technologies also provide facilities to interact with JavaScript in .NET Style and provides events and methods similar to ASP.NET […]
Continue reading…

Enjoyed this post? Share it!

 
 

Technologies in ASP.NET AJAX

This entry is part 3 of 13 in the series ASP.NET Ajax

ASP.NET Ajax has comes with two technologies 1. Client-Side technologies 2. Server-Side technologies The client-side technologies know about sending requests and populating the response to the correct location. It contains client side JavaScript framework that runs in the client’s machine (browser). This is responsible to communicate with server using asynchronous requests. The server-side technologies know […]
Continue reading…

Enjoyed this post? Share it!

 
 

Introduction to ASP.NET Ajax

This entry is part 1 of 13 in the series ASP.NET Ajax

AJAX stands for Asynchronous JavaScript and XML, it is a mechanism to interact with server using XMLHttpRequest object in JavaScript. ASP.NET Ajax is the .NET version of Ajax implementation especially for ASP.NET applications. ASP.NET Ajax enables us to send partial post back request and receive response that helps the application runs faster and become more […]
Continue reading…

Enjoyed this post? Share it!