Developing MVC applications

Once you create an MVC application and perform the initial setup, you can start developing its functionality.

Retrieve content

See examples on how you can retrieve Kentico objects in your MVC application.

Work with page attachments

Display and work with page attachments on your MVC site.

Generate classes for Kentico objects

Generate code files that allow you to work with and retrieve Kentico objects. You can generate code files for Page typesCustom tables and Forms.

Display shared content

Display reusable content modeled by content editors.

Display forms

Display Forms defined in Kentico on your MVC websites.

Work with consents

Gather consents from your MVC site’s visitors to comply with the requirements of the GDPR and other personal data regulations.

Work with Kentico users

Integrate Kentico membership data with your MVC application. Allow visitors to authenticate with Kentico user accounts and authorize actions on your site based on Kentico roles.

Add preview mode support

Allow your content editors to display the latest version of pages before they are published.

Localize data

Localize resource strings stored in Kentico as well as validation results and model properties.

Handle 404 Not Found errors globally

Return a ‘404 Not Found’ page when no controller or controller actions is found or when an action returns HttpNotFoundResult.

Process scheduled tasks

Make sure tasks scheduled in the Kentico application are processed in regular intervals.

Test MVC controllers

Provide tests for the logic implemented in your MVC controllers.

Improve performance of MVC applications

Configure web farms to scale performance and set up caching of data and output.

Debug SQL queries with Glimpse

Set up Glimpse in your MVC application and see the executed SQL queries.