ReportStorageWebExtension.IsValidUrl(String) Method
Determines whether or not the specified URL is valid for the current report storage.
Namespace: DevExpress.XtraReports.Web.Extensions
Assembly: DevExpress.XtraReports.v18.2.Web.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
url | String | A String specifying a URL. |
Returns
Type | Description |
---|---|
Boolean | true, if the specified URL is valid; otherwise, false. |
Remarks
Use the IsValidUrl method to validate the URL that is passed to your Report Storage. For instance, you can prohibit URLs that contain white spaces or some other special characters.
When opening a report, this method is called before the ReportStorageWebExtension.GetData method. When saving the report using the specified URL, this method is called before the ReportStorageWebExtension.CanSetData and ReportStorageWebExtension.SetData methods.
The IsValidUrl is never called before the ReportStorageWebExtension.SetNewData method is called. In this case, you can validate and correct the specified URL directly in the SetNewData method implementation.
For a code example, see the Implement a Report Storage document.