Below the UpdatePanel you just completed, add an UpdateProgress Control from the AJAX section of the Toolbox. TTo complete this section, add one label and change several properties of the control. The text property of the label can display whatever you like, but for this example, type in “Downloading…” (without the quotation marks). The label property can stay as it is by default, “Label1” or read what you wish. Instead of a label, an animated image like a rotating circle can be used. The label property has the usual formatting options. For this demo, it is set to Red.
The UpdateProgress control has only a few properties and of these, only two need attention. First, click on the AssociatedUpdatePanelID and then the down arrow in the blank spot. Since there is only one UpdatePanel on this form, select it. The second important property is the “DisplayAfter” one. This sets an interval before progress message displays. The default is 500 milliseconds (0.5 seconds). The reason for this is to prevent a progress message from showing if the delay is very short. You can change the value as you wish, but for this demo leave it at 500.
Generally, AJAX controls are easy to use and can add significant functionality to your pages. It will be well worth your time to experiment with this ASP.NET 3.5 enhancement.