Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • apload-gmbh 27 posts 87 karma points
    Apr 19, 2023 @ 13:46

    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!

Please Sign in or register to post replies

Write your reply to: