To use Hybrid mode in Sitefinity CMS, you have to create a template and set its advanced options accordingly. In the Create a template dialog, enter a Name such as HybridTemplate, then choose Don't use template, and the Advanced setting WebForms and MVC (hybrid).
Once created, this template and all pages based on it can use both the old WebForms widgets, as well as custom MVC widgets.
In order for this to work, the Sitefinity CMS engine creates a page object, but also routes to all MVC controllers that you have on the page and inserts their markup into the output. This works in exactly the same way that ASP.NET MVC does, so there are no hacks or workarounds – you can fully expect your controllers to behave like they would normally.
There is one caveat. Since WebForms requires that you only have a single HTML form tag on the page, you cannot use the default @Html.BeginForm helper. We have provided an alternative for you, which you can use instead. Everywhere that you need to render a form, you can use @Html.BeginFormSitefinity.
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important
Copyright © 2020 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.
Progress, Telerik, Ipswitch, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.
Powered by Progress Sitefinity