The requested page is not available for the requested platform. You are viewing the content for Default platform.

How to: Implement Server-side Export in the ASP.NET MVC Dashboard Extension

  • 5 min to read

This example demonstrates how to export a dashboard displayed using the ASP.NET MVC Dashboard extension on the server side using the WebDashboardExporter class. The following API is used to implement this capability:

<!DOCTYPE html>

    <meta charset="UTF-8" />
    <title>Dashboard Web Application</title>
    <script src="@Url.Content("~/Scripts/DashboardExport.js")" type="text/javascript"></script>

            new StyleSheet { ExtensionSuite = ExtensionSuite.Dashboard }
            new Script { ExtensionSuite = ExtensionSuite.Dashboard }
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />