Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ReportViewer.RegisterPostBackControl Method

Visual Studio 2010

Registers the specified control with the ReportViewer control. The ReportViewer control displays the wait control when the registered control causes a postback.

Namespace: Microsoft.Reporting.WebForms
Assembly: Microsoft.ReportViewer.WebForms (in microsoft.reportviewer.webforms.dll)
public void RegisterPostBackControl (
	Control control
public void RegisterPostBackControl (
	Control control
public function RegisterPostBackControl (
	control : Control



The control to register as a trigger for a ReportViewer postback.

By default, theThe ReportViewer control shows the wait control only when it determines that a postback is caused by the ReportViewer control itself. Registering your custom control using this method allows you to cause the wait control to be displayed as a result of an action on the custom control. This method registers the specified control and all the child controls that it contains.

To enable and disable your custom control, you should subscribe to a property change event for the Microsoft.Reporting.WebFormsClient.isLoading client-side property to be notified when the ReportViewer postback starts and ends. For more information on how to use the client-side control, see Microsoft.Reporting.WebFormsClient.ReportViewer Class.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.