Referencing MVC Controls in your Application
To use C1 MVC controls in your MVC application, follow these steps:
-
Install ASP.NET MVC Edition
Download the installer(C1StudioInstaller.exe) in your machine. Follow the steps through the installation wizard to install the .NET DLLs and packages for ASP.NET MVC Edition. The installer also installs C1 ASP.NET MVC Web Application templates which can be used in place of the MVC templates provided by Visual Studio, to make working with ComponentOne controls easier. -
License the product
When you download and install ComponentOne products, you are presented with a chance to activate the license. If you want to evaluate our tools before purchase, you can skip the license activation process. In that case, you will get a 30-day evaluation period. During this period, you will be able to use all the features of ComponentOne products. After 30-day evaluation period is over, you will not be able to build applications that include unlicensed ComponentOne controls. You can purchase and activate a license at that point or you can request an evaluation key that will grant you another 30-day evaluation period. Once you have the evaluation key, you can activate it through the ComponentOne License Activation utility found in C:\Program Files (x86)\ComponentOne\C1StartMenu. -
Configure your application
You can create your application using ComponentOne template or Visual Studio template in Visual Studio. On using ComponentOne template, references of the assemblies or the packages are added automatically to your application. While, for an application created using Visual Studio template, these have to be added manually. -
Register the resources in view
For applications created using ComponentOne template, all the resources required to use the available controls also get registered automatically. However, you need to manually register the resources in case of applications created using standard Visual Studio template.
Now, you can use MVC controls in your application. You can add an MVC control in the view or create a client MVC control by using javascript code. For more information, please refer the online documentation.