Microsoft.Reporting.WebFormsClient.ReportViewer.findNext Method

Highlights the next search hit in the report.

$find(viewerId).find("Purchasing");
var handledByClient = $find(viewerId).findNext();

Return Value

true if the operation is handled by the client-side control and did not cause a postback; false if the operation results in a postback.

Remarks

This method should be used after the find method. If the next search hit is found on a different page than the one currently displayed in the report area, the client-side control performs a postback. For an example of how to use this method, see Microsoft.Reporting.WebFormsClient.ReportViewer.find Method.

When the Web page is performing a postback or the client-side control is loading content, accessing the methods or properties will cause an exception with the message: "The report or page is being updated. Please wait for the current action to complete." Use the isLoading property to check whether the report or page is being updated and whether you can access the methods and properties.

When the Web page or the client-side control is not performing a postback, this method requires that a report is loaded. If no report is loaded, invoking this method will cause an exception with the message: "The operation cannot be performed because there is no report loaded." Use the reportAreaContentType property to check whether the report area contains a report page before you use this method.

See Also

Reference

Microsoft.Reporting.WebFormsClient.ReportViewer Class