---
title: Developing MVC applications
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

Once you [create an MVC application](https://docs.kentico.com/k9/developing-websites/developing-sites-using-asp-net-mvc/starting-with-mvc-development.md) and perform the initial setup, you can start developing its functionality.

> **Info:**&#x20;
>
> #### [Retrieve content on MVC sites](https://docs.kentico.com/k9/developing-websites/developing-sites-using-asp-net-mvc/developing-mvc-applications/retrieving-content-on-mvc-sites.md)
>
> See examples on how you can retrieve Kentico objects in your MVC application.

> **Info:**&#x20;
>
> #### [Generate classes for Kentico objects](https://docs.kentico.com/k9/developing-websites/developing-sites-using-asp-net-mvc/developing-mvc-applications/generating-classes-for-kentico-objects.md)
>
> Generate code files that allow you to work with and retrieve Kentico objects. You can generate code files for [Page types](https://docs.kentico.com/display/K9/Page+types), [Custom tables](https://docs.kentico.com/display/K9/Custom+tables) and [Forms](https://docs.kentico.com/display/K9/Forms).

> **Info:**&#x20;
>
> #### [Provide smart search on MVC sites](https://docs.kentico.com/k9/developing-websites/developing-sites-using-asp-net-mvc/developing-mvc-applications/providing-smart-search-on-mvc-sites.md)
>
> Make sure [smart search](https://docs.kentico.com/display/K9/Setting+up+search+on+your+website) indexes stay up to date so that you can provide search functionality on your MVC site.

> **Info:**&#x20;
>
> #### [Add preview mode support for MVC sites](https://docs.kentico.com/k9/developing-websites/developing-sites-using-asp-net-mvc/developing-mvc-applications/adding-preview-mode-support-for-mvc-sites.md)
>
> Allow your content editors to display the latest version of pages before they are published.

> **Info:**&#x20;
>
> #### [Display shared content in MVC applications](https://docs.kentico.com/k9/developing-websites/developing-sites-using-asp-net-mvc/developing-mvc-applications/displaying-shared-content-in-mvc-applications.md)
>
> Display [reusable content](https://docs.kentico.com/display/K9/Advanced+content+modeling) modeled by content editors.

> **Info:**&#x20;
>
> #### [Work with page attachments in MVC applications](https://docs.kentico.com/k9/developing-websites/developing-sites-using-asp-net-mvc/developing-mvc-applications/working-with-page-attachments-in-mvc-applications.md)
>
> Display and work with [page attachments](https://docs.kentico.com/k9/managing-website-content/working-with-files/page-attachments.md) on your MVC site.

> **Info:**&#x20;
>
> #### [Localize data on MVC sites](https://docs.kentico.com/k9/developing-websites/developing-sites-using-asp-net-mvc/developing-mvc-applications/localizing-data-on-mvc-sites.md)
>
> Localize resource strings stored in Kentico as well as validation results and model properties.

> **Info:**&#x20;
>
> #### [Handle 404 Not Found globally in MVC applications](https://docs.kentico.com/k9/developing-websites/developing-sites-using-asp-net-mvc/developing-mvc-applications/handling-404-not-found-globally-in-mvc-applications.md)
>
> Return a '404 Not Found' page when no controller or controller actions is found or when an action returns _HttpNotFoundResult_.

> **Info:**&#x20;
>
> #### [Test MVC controllers](https://docs.kentico.com/k9/developing-websites/developing-sites-using-asp-net-mvc/developing-mvc-applications/testing-mvc-controllers.md)
>
> Provide tests for the logic implemented in your MVC controllers.

> **Info:**&#x20;
>
> #### [Improve performance of MVC applications](https://docs.kentico.com/k9/developing-websites/developing-sites-using-asp-net-mvc/developing-mvc-applications/improving-performance-of-mvc-applications.md)
>
> Configure web farms to scale performance and set up caching of data and output.

> **Info:**&#x20;
>
> #### [Debug SQL queries with Glimpse on MVC sites](https://docs.kentico.com/k9/developing-websites/developing-sites-using-asp-net-mvc/developing-mvc-applications/debugging-sql-queries-with-glimpse-on-mvc-sites.md)
>
> Set up Glimpse in your MVC application and see the executed SQL queries.
