ComponentOne WebReports for ASP.NET: WebReports for ASP.NET Task-Based Help > Adding AJAX to WebReports for ASP.NET > Customizing the Appearance of AJAX Callbacks > Displaying an Image During Callback

Displaying an Image During Callback

To display an image while the callback is being performed, set the CallbackWaitImageUrl property to the image you would like displayed. This can be set either at design time or programmatically.

By default, the CallbackWaitImageUrl property is set to DefaultSpinner:  To display a new image, complete the following steps:

1.   Create an Images folder in the directory where your project is located, and place the desired image within the folder.

2.   Set the CallbackWaitImageUrl property to the image in the Images folder.

In the Designer

a)   In the Properties window for C1WebReport, click the ellipsis button next to the CallbackWaitImageUrl property to open the Select Image dialog box.

 

b)   Select the Images folder under Project folders.

c)   Under Contents of folder select an image, in this case hourglass.png, and click OK.

In Code

Add the following code to the Page_Load event to set the CallbackWaitUrl property to an image in the Images folder:

      Visual Basic

Me.C1WebReport1.CallbackWaitImageUrl = "~/Images/hourglass.png"

      C#

this.c1WebReport1.CallbackWaitImageUrl = "~/Images/hourglass.png";

This topic illustrates the following:

The CallbackWaitImageURL property is set to show the hourglass image when the next page of the report is being retrieved.

 

 

Note: If both the CallbackWaitControlID and CallbackWaitImageURL properties are set, CallbackWaitControlID takes precedence over the CallbackWaitImageURL, and only the control appears.


Send comments about this topic to ComponentOne.
Copyright © 1987-2010 ComponentOne LLC. All rights reserved.