Sutharshan Suthan
Sutharshan Suthan

Reputation: 133

Is web control renderings supported by Sitecore MVC in Sitecore 8.1?

I have found out that Sitecore web control rendering is not supported by Sitecore MVC, which is only supported by Sitecore web forms, appreciate if somebody give me better understanding,

Reference link

http://www.sitecore.net/learn/blogs/technical-blogs/john-west-sitecore-blog/posts/2012/06/mvc-renderings-and-renderers-in-the-sitecore-aspnet-cms.aspx

https://sdn.sitecore.net/Articles/Web%20Controls/Building%20Web%20Controls%20-%20Part%201.aspx

Upvotes: 0

Views: 214

Answers (1)

jammykam
jammykam

Reputation: 16990

You cannot mix and match Webforms/MVC in a single request, so all renderings on a single item need to be either Webforms or MVC only.

The best solution is to migrate the solution to MVC, if you can't do that all at once then build out the site section by section to move to MVC, there is no issue having both a Webforms and MVC solution running side by side, just not in the same request.

You can override the out of the box behaviour using techniques such as Mixing Sublayout with Rendering – Webforms with MVC request or Using Sitecore MVC components on WebForms pages however these are not supported by Sitecore and everything may not work as expected, but it may be an option if there is no other possibility.

Upvotes: 4

Related Questions