Monday, May 21, 2012

Update Progress is not working properly

Update Progress is used to display animated text or some message to users, while target Update Panel is working. But some cases this isn’t happening as we want.

We can use Ajax toolkit component as alternative.
First you have to download AjaxToolkit latest release and add it as reference into your project.




Add a assembly to your config file.
Then instead of <asp:UpdateProgress> tag you can use <ajaxToolkit:UpdatePanelAnimationExtender> tag and target control id should be your update panel id.

Inside <OnUpdating> tag you can assign a task that will working while processing and inside <OnUpdated> tag you can assign task that should work after processed.

In following example code I have used a label to display a message to user.








No comments:

Post a Comment