I've talked previously about How To Create A Sub Layout and Add It to a Page in Sitecore that explained how to create old school web forms, user controller to add functionality into your Sitecore. As Web Forms is a near-obsolete technology now, in today's guide I'm going to discuss how to add functionality to your project using MVC.
public class ExampleControlRenderingController : Controller
public ActionResult Index()
return View(new ExampleControlRenderingViewModel());
public class ExampleControlRenderingViewModel
public string TheDate
Software Architect, Programmer and Technologist Jon Jones is founder and CEO of London-based tech firm Digital Prompt. He has been working in the field for nearly a decade, specializing in new technologies and technical solution research in the web business. A passionate blogger by heart , speaker & consultant from England.. always on the hunt for the next challenge