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.v19.2.Web.dll


public virtual bool IsValidUrl(
    string url
Public Overridable Function IsValidUrl(
    url As String
) As Boolean


Name Type Description
url String

A String specifying a URL.


Type Description

true, if the specified URL is valid; otherwise, false.


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.


See Also