-
Notifications
You must be signed in to change notification settings - Fork 1
/
Default.aspx.vb
19 lines (16 loc) · 906 Bytes
/
Default.aspx.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Imports DevExpress.DashboardWeb
Imports System
Namespace WebFormsDashboard_CustomSchemaProvider
Public Partial Class [Default]
Inherits Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim dashboardFileStorage As DashboardFileStorage = New DashboardFileStorage("~/App_Data/Dashboards")
ASPxDashboard1.SetDashboardStorage(dashboardFileStorage)
ASPxDashboard1.SetConnectionStringsProvider(New DevExpress.DataAccess.Web.ConfigFileConnectionStringsProvider())
' This method assigns the database schema provider to the Web Dashboard.
' Uncomment one of the following lines depending on the provider.
ASPxDashboard1.SetDBSchemaProvider(New ManualDBSchemaProvider())
'ASPxDashboard1.SetDBSchemaProvider(new LimitDBSchemaProvider());
End Sub
End Class
End Namespace