Skip to content

Commit 56b2783

Browse files
committed
update example
1 parent af6dd05 commit 56b2783

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Blazor/Reporting_ObjectDS_Blazor/Startup.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public void ConfigureServices(IServiceCollection services)
3535
{
3636
designerConfigurator.RegisterObjectDataSourceWizardTypeProvider<ObjectDataSourceWizardCustomTypeProvider>();
3737
});
38+
DevExpress.Utils.DeserializationSettings.RegisterTrustedClass(typeof(EmployeeList));
3839
});
3940
}
4041

WebForms/CS/Reporting_ObjectDS_WebForms/Global.asax.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
using System.IO;
33
using System.Web;
44
using DevExpress.XtraReports.Web;
5+
using Reporting_ObjectDS_WebForms.Employees;
56
using Reporting_ObjectDS_WebForms.Services;
67

78
namespace Reporting_ObjectDS_WebForms {
89
public class Global_asax : System.Web.HttpApplication {
910
void Application_Start(object sender, EventArgs e) {
1011
System.Web.Routing.RouteTable.Routes.MapPageRoute("defaultRoute", "", "~/Default.aspx");
12+
DevExpress.Utils.DeserializationSettings.RegisterTrustedClass(typeof(EmployeeList));
1113
DevExpress.XtraReports.Configuration.Settings.Default.UserDesignerOptions.DataBindingMode = DevExpress.XtraReports.UI.DataBindingMode.Expressions;
1214
DevExpress.XtraReports.Web.WebDocumentViewer.Native.WebDocumentViewerBootstrapper.SessionState = System.Web.SessionState.SessionStateBehavior.Default;
1315
DevExpress.XtraReports.Web.QueryBuilder.Native.QueryBuilderBootstrapper.SessionState = System.Web.SessionState.SessionStateBehavior.Default;

0 commit comments

Comments
 (0)