0

I am working on a Umbraco CMS 5 project. I have two Questions:

  1. How to add Controller for a existing View?

  2. Can Data be inserted in Umbraco Database? In example If someone submit his/her information in a webpage then Data will be saved in Umbraco Database(Umbraco.sdf).

1 Answer 1

1
    1. Create a controller in the controllers folder of your project.
    2. Create an action method in that controller with return type ActionResult.
    3. Do your manipulations in that action method and then return the view path like return View("~/Views/Umbraco/Your view name.cshtml");
  1. You can create your own custom table in the umbraco.sdf with the columns you need and can submit your information using Sql or linq(if you create an entity).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.