Currently I'm trying to create my own contact form in an Umbraco9 project. I've created a template and a controller with both a cshtml-file. My first attempt was to get the controller via action-tag in html-form. The problem is, that Umbraco can't find the cshtml-file and causes an error (I've already read in a forum that the back-office doesn't support cshtml so you can't read these files). So I've tried to create the controller with a cs-file. Then there's an error that Umbraco rejects these filetypes. So for the next step i didn't get the controller with an action-tag, but tried to integrate it with @model and @using. Same story – doesn't work because i can't reach the folders where the controller and model is.
I'm not really an expert in backend-programming so I'm at my wit's end.
Maybe you guys can show me another way to use that controller (or even better to inegrate the controller in the same file as the template).
create contact form
Hello friends
Currently I'm trying to create my own contact form in an Umbraco9 project. I've created a template and a controller with both a cshtml-file. My first attempt was to get the controller via action-tag in html-form. The problem is, that Umbraco can't find the cshtml-file and causes an error (I've already read in a forum that the back-office doesn't support cshtml so you can't read these files). So I've tried to create the controller with a cs-file. Then there's an error that Umbraco rejects these filetypes. So for the next step i didn't get the controller with an action-tag, but tried to integrate it with @model and @using. Same story – doesn't work because i can't reach the folders where the controller and model is.
I'm not really an expert in backend-programming so I'm at my wit's end.
Maybe you guys can show me another way to use that controller (or even better to inegrate the controller in the same file as the template).
Thank you!
is working on a reply...