Asp net gridview onupdating

To display progress to the user, we handle the Initialize Request at the client side and set the to visible.This shows up the image with the progress as shown below.The button that caused the postback is disabled during this event, so in order to prevent users from hitting the button again.Another very simple option to display progress during an async postback is to use the Update Progress control.By Default, Grid View control displays Item Template which directly shows the Product Name and Unit Price columns but when user clicks Edit button Grid View automatically switches to Edit Item Template and display the control available inside Edit Item Template for user editing.Now I will show you the C# code behind file of the above ASP.

In the example below, we use the same to display progress while the Update Panel is updating its content.To do this we first need to obtain the reference of the current row by using its index no as shown in the first line below.By using the Grid View Row object we can find the reference of any control in the row in which user is editing the data.In our case, we are displaying a image progress as shown below The Update Panel Animation control can also be used to visually display progress to the users while the Update Panel is performing some operation. NET AJAX documentation “The Update Panel Animation Extender is a simple extender that allows you to utilize the powerful animation framework with existing pages in an easy, declarative fashion.It is used to play animations both while an Update Panel is updating and after it has finished updating”.

Leave a Reply