ReportViewer.RegisterPostBackControl Method
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)
Syntax
'Declaration
Public Sub RegisterPostBackControl ( _
control As Control _
)
'Usage
Dim instance As ReportViewer
Dim control As Control
instance.RegisterPostBackControl(control)
public void RegisterPostBackControl (
Control control
)
public:
void RegisterPostBackControl (
Control^ control
)
public void RegisterPostBackControl (
Control control
)
public function RegisterPostBackControl (
control : Control
)
Parameters
- control
The control to register as a trigger for a ReportViewer postback.
Remarks
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.
See Also
Reference
ReportViewer Class
ReportViewer Members
Microsoft.Reporting.WebForms Namespace