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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to use Classic and Non-classic MVC controls in the same project?


On adding both Classic MVC and EJMVC controls in same project, there can be some issues on rendering both the controls due to missing references and their scripts in the application.


To use both classic and non-classic control in same project, add reference DLLs, StyleManger and ScriptManager for both the platforms accordingly. Following steps illustrate the procedure for adding Captcha in MVC project:

  1. Refer to the required DLLs in the project for both platforms. Add references to corresponding assemblies based on the .NET framework version and MVC used in the application.

Classic MVC assemblies to refer,

  1. Syncfusion.Core
  2. Syncfusion.Linq.Base
  3. Syncfusion.Tools.Mvc
  4. Syncfusion.Shared.Mvc               
  5. Syncfusion.Theme.Base

Essential JavaScript powered ASP.NET MVC (EJMVC) assemblies to refer,

  1. Syncfusion.EJ
  2. Syncfusion.EJ.Mvc
  1. Add the ScriptManager and StyleManger in Layout page for both the platforms as illustrated in the following code example.


To add scripts and style references for rendering EJMVC controls refer the following link, http://help.syncfusion.com/ug/js/default.htm#!documents/createmanually.htm

  1. Add the corresponding reference assemblies and namespaces for both the platforms in webconfig file. Refer to the following code example.


  1. Adding a Captcha to an application requires registering the image handlers under httphandler and handler tags. These image handlers are different from MvcResourcehandler and they work together with them.


  1. Create the Captcha control in the view page in both classic and non-classic MVC.


For reference, check the following online sample links.

EJMVC Samples demo, http://mvc.syncfusion.com/demos/web/Captcha/Default

Classic MVC Samples demo, http://mvc.syncfusion.com/demos/ui/tools/Captcha/ThroughView

For further reference on creating an application with EJMVC and Classic MVC check the following links.

Getting started with EJMVC, http://help.syncfusion.com/ug/js/documents/createmanually.htm

Getting started with Classic MVC, http://help.syncfusion.com/ug/asp.net%20mvc/documents/creatingsyncfusionmvcapplication.htm


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

Please sign in to access our KB

or the page will be automatically redirected to sign-in page in 10 seconds.

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