Skip to main content
A newer version of this page is available.
All docs
V18.2

DefaultReportDesignerContainer.AllowPassingDataSourceConnectionParametersToClient() Method

Enables the Web Report Designer to pass data source connection parameters from the Web.config file to the client.

Namespace: DevExpress.XtraReports.Web.ReportDesigner

Assembly: DevExpress.XtraReports.v18.2.Web.dll

Declaration

public static void AllowPassingDataSourceConnectionParametersToClient()

Remarks

When the Web Report Designer is enabled to use data connections specified in the application’s Web.config file, these connections’ parameters are encrypted by applying the MachineKey algorithm to them by default. For this reason, it is not required to call the AllowPassingDataSourceConnectionParametersToClient method explicitly in most scenarios.

If, however, you are required to do this, call this method at the application startup, as illustrated in the following example.

using DevExpress.XtraReports.Web.ReportDesigner;
// ...

public class Global_asax : System.Web.HttpApplication {
    void Application_Start(object sender, EventArgs e) {
        // Register a connection strings provider. 
        DefaultReportDesignerContainer.RegisterDataSourceWizardConfigFileConnectionStringsProvider();

        // Enable the Web Report Designer to pass data source connection parameters from the Web.config file to the client.
        DefaultReportDesignerContainer.AllowPassingDataSourceConnectionParametersToClient();
    }
    //...
}
See Also