Articles in this section
Category / Section

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

2 mins read

Steps for migrating the existing project in ASP.NET MVC (Classic) to ASP.NET MVC.

Solution

Currently, there is no easy migration path available for Essential Studio 12.2. The controls do not share the same API. So, you have to manually map the equivalent functionality in the new controls.

In ASP.NET MVC (latest), you don’t have separate DLL for every controls such as, “Syncfusion.Grid.Mvc.dll” and “Syncfusion.Tools.Mvc.dll” rather, use Syncfusion.EJ.MVC.dll and Syncfusion.EJ.dll to hold all the controls in common.

Therefore, remove the Syncfusion.Grid.Mvc.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.

The following table lists the required Namespaces, DLLs, script and CSS files to work with the ASP.NET MVC control.

DLLs required

Syncfusion.EJ.dll

Syncfusion.EJ.MVC.dll

Syncfusion.Core.dll

Namespaces

Syncfusion.MVC.EJ

Syncfusion.JavaScript

Script files

Syncfusion script files:

ej.web.all.min.js

ej.unobtrusive.min.js

External Script files:

jquery.min.js

jquery.easing.min.js

jquery.globalize.min.js

jsrender.min.js

jquery.validate.min.js

CSS files

ej.web.all.min.css

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.

Web.config

<appSettings>

    <add key="webpages:Version" value="2.0.0.0" />

    <add key="webpages:Enabled" value="false" />

    <add key="PreserveLoginUrl" value="true" />

    <add key="ClientValidationEnabled" value="true" />

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

</appSettings>

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

CSS Location: C:\Program Files (x86)\Syncfusion\Essential Studio\12.2.0.36\JavaScript\assets\css\web

Script Location: C:\Program Files (x86)\Syncfusion\Essential Studio\12.2.0.36\JavaScript\assets\scripts\web

DLL Location: C:\Program Files (x86)\Syncfusion\Essential Studio\12.2.0.36\Assemblies

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

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

Refer the following link for more information about the ASP.NET MVC Grid controls.

Getting Started with MVC Grid Control:

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

For your convenience, a getting started video of ASP.NET MVC Grid control is created and you can download the same from the following location.

Video Link: aspmvc.zip

In v11.4.0.26, by default the project template is created. But for v12.2.0.36, you have to install MVC Extension separately to insert project template in Visual Studio.

MVC Extension Download Link:

http://www.syncfusion.com/downloads/extension/v12.2.0.36

For more information about the features available in ASP.NET MVC, refer to the following online sample link.

Online Sample Link: http://mvc.syncfusion.com/demos/web/Grid/Default

Also the APIs used in ASP.NET MVC is similar to that of JavaScript APIs. For example, in JavaScript allowFiltering is used to enable filtering to grid whereas in ASP.NET MVC, the first letter is capitalized in the property that is, AllowFiltering. For more information on the APIs available, refer to the following link.

API Documentation Link: http://help.syncfusion.com/cr/js

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied