MVC versions of webcontrols

Vote:
 

Guys, is there any MVC versions of webcontrols that episerver providers e.g. pagetree or Inputdate

for these ones

https://world.episerver.com/documentation/class-library/?documentId=cms/9/18C02D19

Thanks

#188759
Mar 02, 2018 10:51
Vote:
 

Sorry to dissapoint you, but no. Best is to learn and adapt to MVC and forget about WebControls. Personally I don't like anything that writes/generates HTML markup in the backend. It's better to create and populate view models and put all markup in nice and clean Razor views. However, in Alloy Demo Kit there is a HTML Helper called MenuList that you can take a look at to get some ideas:

HTML Helper:

https://github.com/episerver/AlloyDemoKit/blob/0ba7935b08716cd1d7c76ef3b41cc2ba5f80ca4b/src/AlloyDemoKit/Helpers/HtmlHelpers.cs#L36 

View that uses the helper:

https://github.com/episerver/AlloyDemoKit/blob/0ba7935b08716cd1d7c76ef3b41cc2ba5f80ca4b/src/AlloyDemoKit/Views/Shared/Header.cshtml#L26 
#188944
Edited, Mar 07, 2018 13:28
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.