dashboard-devexpress-dot-dashboardweb-dot-aspxdashboard-a10d2b5b.md
Gets or sets the path to the XML definition of a dashboard to be loaded to ASPxDashboard.
Namespace : DevExpress.DashboardWeb
Assembly : DevExpress.Dashboard.v25.2.Web.WebForms.dll
NuGet Package : DevExpress.Web.Dashboard
[DefaultValue("")]
public string DashboardXmlPath { get; set; }
<DefaultValue("")>
Public Property DashboardXmlPath As String
| Type | Default | Description |
|---|---|---|
| String | String.Empty |
A String that specifies the path to the XML definition of a dashboard to be loaded to ASPxDashboard.
|
An XML file should be located on the server.
To learn more about different methods of loading a dashboard, see Loading a Dashboard.
Note
Note that if you load a dashboard using DashboardXmlPath or ASPxDashboard.OpenDashboard, end-users will not be able to create new dashboards. To allow end-users to create new dashboards, create dashboard storage using ASPxDashboard.DashboardStorageFolder or ASPxDashboard.SetDashboardStorage.
The code snippet below shows how to display the dashboard stored in the XML file using the ASPxDashboard.DashboardXmlPath property.
ASPxDashboard1.DashboardXmlPath = Server.MapPath("App_Data/MyDashboard.xml");
ASPxDashboard1.DashboardXmlPath = Server.MapPath("App_Data/MyDashboard.xml")
The following code snippets (auto-collected from DevExpress Examples) contain references to the DashboardXmlPath property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
{
ASPxDashboard1.DashboardXmlPath = Server.MapPath("App_Data/dashboard1.xml");
}
protected void Page_Load(object sender, EventArgs e) {
ASPxDashboard1.DashboardXmlPath = Server.MapPath("App_Data/Dashboard.xml");
}
protected void Page_Load(object sender, EventArgs e) {
ASPxDashboard1.DashboardXmlPath = Server.MapPath("App_Data/dashboard1.xml");
}
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
ASPxDashboard1.DashboardXmlPath = Server.MapPath("App_Data/dashboard1.xml")
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
ASPxDashboard1.DashboardXmlPath = Server.MapPath("App_Data/Dashboard.xml")
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
ASPxDashboard1.DashboardXmlPath = Server.MapPath("App_Data/dashboard1.xml")
End Sub
See Also