November Happy Hour will be moved to Thursday December 5th.

Can we load .net controls with .net functionality in episerver page?

Vote:
 

Hi All,

I added new database in my sqlserver and initialized with "Initialize-EPIdatabase" command. I got database like epidatabase. And then created table in database for inserting data.And then created PageType, PageController(MVC) and Index view in episerver and then in page type created one more class and added some normal string properties. And written inserting functionality in controller and View. But data not inserting. Mvc code is working in episerver page? Could anybody help me is it working or not and suggest how to do this functionality without forms?  

Thanks,

Uday

#179778
Jun 21, 2017 15:23
Vote:
 

Hi,

Have you followed the getting started guide for Episerver CMS? https://world.episerver.com/documentation/developer-guides/CMS/getting-started/

Also, when you say .net controls, are you referring to WebControls from WebForms? In that case I would suggest that you build your website using WebForms instead of MVC.

#179957
Jun 27, 2017 9:40
Vote:
 

Hi Alf Nilsson,

Thanks for your answer. But i have requirement with MVC only actually i need custom form for developing this i tried i don't know how to create custom forms in episerver.So i tried in mvc.

Thanks,

Uday

#179972
Jun 27, 2017 14:24
Vote:
 

If you want the editor to be able to create forms that a visitor can submit you either have the functions "XForms" and an addon called "Episerver Forms" that you can use.

Here you find a comparison of the two functions: https://www.epinova.no/en/blog/xforms-vs-episerver-forms-the-5-most-common-questions/

Keep in mind that XForms is quite old :)

If you mean that you as a customer creates a form that the visitor can submit, all you need to do is to implement a normal MVC. Byron Calisto has a blog post about this:

https://world.episerver.com/blogs/team-oshyn/dates/2016/3/posting-forms-with-episerver-mvc/

#179976
Jun 27, 2017 14:49
Vote:
 

Thnks for your suggetions Alf Nilsson.

Regards,

Uday.

#180025
Edited, Jun 28, 2017 14:46
* 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.