We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to migrate from Classic ASP.NET MVC to ASP.NET MVC?

Description

Currently, there is no easy migration utility available for Essential Studio. The controls don’t share the same APIs. You have to manually map the equivalent functionality in the new controls.

In ASP.NET MVC (EJMVC), you don’t have separate DLL for every controls such as, “Syncfusion.Tools.Mvc.dll” rather, use Syncfusion.EJ.MVC.dll and Syncfusion.EJ.dll to hold most of the web controls.

Therefore, remove the Syncfusion.Shared.Base.dll, Syncfusion.Shared.Mvc.dll and other DLLs used by ASP.Net MVC (Classic) and also remove the namespaces from the web.config. Refer to the Syncfusion.EJ.MVC.dll and Syncfusion.EJ.dll in the project.

Steps for migrating the project from ASP.NET MVC (Classic) to ASP.NET MVC (EJMVC).

Solution

 

MVC(classic)

ASP.NET MVC

DLL files Required

Syncfusion.Chart.Mvc.dll

Syncfusion.Shared.Mvc.dll

Syncfusion.Tools.Mvc.dll

Syncfusion.Grid.Mvc.dll

Syncfusion.Diagram.Mvc.dll

Syncfusion.Maps.Mvc.dll

Syncfusion.Schedule.Mvc.dll

Syncfusion.Gauge.Mvc.dll

Syncfusion.Theme.Base.dll

Syncfusion.EJ.dll

Syncfusion.EJ.MVC.dll

 

 Assembly Reference

<add assembly="Syncfusion.Core, Version= 13.1450.0.21, Culture=neutral, PublicKeyToken=632609B4D040F6B4" />

<add assembly="Syncfusion.Shared.Mvc, Version= 13.1500.0.21, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />

<add assembly="Syncfusion.Linq.Base, Version= 13.1450.0.21, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />

<add assembly="Syncfusion.Theme.Base, Version= 13.1450.0.21, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />

<add assembly="Syncfusion.Tools.Mvc, Version= 13.1500.0.21, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />

< add assembly ="Syncfusion.Core, Version= 13.1450.0.21, Culture=neutral, PublicKeyToken=632609B4D040F6B4" />

<add assembly="Syncfusion.EJ, Version= 13.1450.0.21, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />

<add assembly="Syncfusion.EJ.Mvc, Version= 13.1500.0.21, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />

C:\Users\pongeetha\Desktop\Reference Document\note.jpgNote: You can refer to the version table to denote the assembly for your target MVC version in the following online documentation link.

http://help.syncfusion.com/ug/js/index.html#!Documents/createmanually.htm#_Ref386095865

Unobtrusive JavaScript

-

<add key="UnobtrusiveJavaScriptEnabled" value="false" />

C:\Users\pongeetha\Desktop\Reference Document\note.jpgNote: When UnobtrusiveJavaScriptEnabled is set as true in web.config, then include the ej.unobtrusive.min.js file in the _Layout.cshtml page.

Namespaces

<namespaces>

  <add namespace="Syncfusion.Mvc.Shared" />

  <add namespace="Syncfusion.Mvc.Tools" />

</namespaces>

<namespaces>

  <add namespace="Syncfusion.MVC.EJ" />

  <add namespace="Syncfusion.EJ" />

</namespaces>

Script files

The Script files are embedded as follows and they are referred from the DLL.

@{Html.Syncfusion().ScriptManager().Combine(true).Minify(true).Render();}

Here, you have to manually include the necessary script files. The following script files reference has to be added in the _Layout Page.

@Html.EJ().ScriptManager()

ej.web.all.min.js - Contains all Syncfusion JS web widgets.

jquery-1.10.1.min.js - Contains the predefined jQuery methods and libraries.

jquery.easing-1.3.min.js - For Animation Support.

Theme files

 

        @(Html.Syncfusion().StyleManager().Combine(true).Minify(true) .Register(component =>

            {

            }))

ej.web.all.min.css – Contains themes for Syncfusion controls.

 

You can find the scripts and css files in the following locations:

CSS Location: [Installed Location]\Syncfusion\Essential Studio\XX.X.X.XX\JavaScript\assets\css\web

Script Location: [Installed Location]\Syncfusion\Essential Studio\XX.X.X.XX\JavaScript\assets\scripts\web

For CDN reference you can find the CDN links in the following online documentation link.

http://help.syncfusion.com/ug/js/Documents/cdn.htm

DLL Location: [Installed Location]\Syncfusion\Essential Studio\XX.X.X.XX\Assemblies

C:\Users\pongeetha\Desktop\Reference Document\note.jpgNote: XX.X.X.XX denotes the version of the Syncfusion studio.

In order to create an application in ASP.NET MVC (EJMVC) and configure the settings manually, refer to the link:

http://help.syncfusion.com/ug/js/default.htm#!documents/createmanually.htm

Article ID: Published Date: Last Revised Date: Platform: Control:
4463 04/17/2015 04/17/2015 ASP.NET MVC General
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon