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?
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.
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.
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:
Thnks for your suggetions Alf Nilsson.