How to properly run the copied code properly in ASP.NET MVC General?
How to properly run the copied code properly in an MVC sample
Description:
When a piece of code or sample is copied from the Syncfusion sample browser or UG documentation, it cannot be expected to work properly unless certain prerequisites and conditions are met in ASP.NET MVC.
Solution:
Prerequisites:
- A MVC application with Syncfusion assemblies installed. Make sure that the required assemblies are included in the project, for ex: (for e.g., Syncfusion.EJ and Syncfusion.EJ.MVC).
- Scripts and Theme files that are required by Syncfusion controls are referred in the _Layout page. For ex: (for e.g., jQuery v1.10 or higher, ej.web.all.min.js , and ej.web.all.min.css).
If these above previous requirements are met, then the code copied from the documentation or demo site and pasted in to the application and will work flawless.
Starting from scratch…...
When creating a new application to try out the code, check out our Getting started section in UG documentation: https://help.syncfusion.com/aspnetmvc/getting-started.
Hint: For a quicker way, the sample creator which that is included in the Syncfusion Dashboard or Syncfusion Project templates available in the Visual Studio can be used.
For more information, refer to the following documentation: https://help.syncfusion.com/aspnetmvc/getting-started
Sample Creator -: https://help.syncfusion.com/extension/aspnet-mvc-extension/sample-creator
Project Templates -: https://help.syncfusion.com/extension/aspnet-mvc-extension/syncfusion-project-templates
Already have an MVC application……
For existing applications, check out the manual integration of Syncfusion controls section in the UG documentation: https://help.syncfusion.com/aspnetmvc/getting-started#manual-integration.
Hint: For a quicker way, the project conversion utility included in the Syncfusion Dashboard can be used.
For more information, refer to the following documentation:
Project Conversion -: https://help.syncfusion.com/extension/aspnet-mvc-extension/project-conversion
The above previous steps can help with almost every demo sample. Still if you couldn’t couldnotcould not get the sample working or need any further help, then contact us by creating a support ticket.
Conclusion
I hope you enjoyed learning about how to run the copied code in an ASP.NET MVC.
You can refer to our ASP.NET MVC feature tour page to know about its other groundbreaking feature representations documentation and how to quickly get started for configuration specifications. You can also explore our ASP.NET MVC example to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!