ReportViewer.RegisterPostBackControl 方法
向**“ReportViewer”控件注册指定的控件。“ReportViewer”**控件在注册的控件导致回发时显示等待控件。
命名空间: Microsoft.Reporting.WebForms
程序集: Microsoft.ReportViewer.WebForms(在 Microsoft.ReportViewer.WebForms.dll 中)
语法
声明
Public Sub RegisterPostBackControl ( _
control As Control _
)
用法
Dim instance As ReportViewer
Dim control As Control
instance.RegisterPostBackControl(control)
public void RegisterPostBackControl(
Control control
)
public:
void RegisterPostBackControl(
Control^ control
)
member RegisterPostBackControl :
control:Control -> unit
public function RegisterPostBackControl(
control : Control
)
参数
- control
类型:System.Web.UI.Control
作为**“ReportViewer”**回发的触发器注册的控件。
注释
默认情况下,**“ReportViewer”控件仅在确定回发是由“ReportViewer”**控件自身导致时才显示等待控件。使用此方法注册自定义控件,可以使等待控件显示为自定义控件上的操作结果。此方法注册指定的控件及其包含的所有子控件。
若要启用和禁用自定义控件,您应当订阅在**“ReportViewer”**回发开始和结束时要通知的 Microsoft.Reporting.WebFormsClient.isLoading 客户端属性的属性更改事件。有关如何使用客户端控件的更多信息,请参见 Microsoft.Reporting.WebFormsClient.ReportViewer 类。