ASP.NET MVC Application

This section describes how to create Syncfusion Dashboard Viewer ASP.NET Web application using Visual Studio project template.

Following are the steps to create Syncfusion Dashboard Viewer ASP.NET MVC application.

Step 1. Select File > New > Project.
Step 2. Choose Templates > Visual C# > Syncfusion Dashboard Viewer ASP.NET MVC.

      ![New project wizard with ASP.NET MVC template](../images/mvc1.PNG)

Step 3. Enter a name in the name field to create Syncfusion Dashboard Viewer ASP.NET MVC application.

Step 4. Click OK to open the ASP.NET MVC project configuration wizard.

Project configuration

Choose the options to configure the Syncfusion Dashboard Viewer ASP.NET MVC application by using the following project configuration dialog.

MVC Version: MVC version as default.

Assets From: This drop-down list has an origin of the Dashboard viewer resource files that are downloaded from the selected option of this application.

Languages: This drop-down is used to select the language either as C# or VB.

Service URL: Denotes URL of dashboard service that will be used for processing the viewer dashboard file.

Dashboard Path: Denotes the dashboard file path which should be accessible with the given dashboard service link. If the dashboard service is hosted locally, then the dashboard file path can be an absolute location of the local machine. If the dashboard service is hosted on the remote machine, then the dashboard file path should be accessible at the given dashboard service.

For example, http:///MySampleDashboard.sydx

ASP.NET MVC Project Configuration Wizard

Step 5. When you click Create button, the Syncfusion Dashboard Viewer ASP.NET MVC application is created with required reference Syncfusion Dashboard Viewer MVC Assembly reference and the resources Scripts and CSS are added to the project.

Dashboard Viewer MVC Assembly Reference in Solution Explorer

Scripts view in Solution Explorer

Step 6. Compile and execute the application, you can able to see the following output in the browser.

Dashboard output in web browser