Creating MVC Webparts

Jürgen Gutsch asked on March 14, 2014 06:16

Hi, I did a little research in the devnet and found some very good documentations about to create MVC Razor templates. But I didn't found any documentation about Razor web parts or using classic web parts with MVC Templates.

We want to redesign a customer website and want to replace all Web Forms stuff with ASP.NET MVC and Razor. Is this possible? Is it possible to create Razor based web parts (Not really MVC web parts, because they don't have an controller, but Razor based) Is it possible to use the classic web parts inside a MVC based page template?

Is this possible with v8? Currently we are using we are using v7.

Thanks, Juergen

Correct Answer

Juraj Ondrus answered on March 17, 2014 06:37

Hi,

I am afraid but our portal engine does not support Razor syntax in the web parts and also it is not possible to use the standard web parts inside MVC templates. You will need to develop everything in MVC on your own.

Best regards,
Juraj Ondrus

0 votesVote for this answer Unmark Correct answer

Recent Answers


Jürgen Gutsch answered on March 31, 2014 07:52

Hi, many thanks for your feedback. Cheers Juergen

0 votesVote for this answer Mark as a Correct answer

Roman Raj Bajracharya answered on November 16, 2016 06:58

Hello Juraj, I am trying to make a blogging system. I'm currently learning to use Kentico with MVC. Can I use the benefits of web parts such as On-line forms BLOGs of Kentico when I am using Asp.NET MVC??

Thanks, Roman

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.