0

I got this error, and I ensure I have the file FormModelConfigurarAreaItem.cshtml in the EditorTemplates.

No found the partial view ~/Views/Shared/EditorTemplates/FormModelConfigurarAreaItem or there are no search mottor which admits this path.

The code is:

    [HttpGet]
    public PartialViewResult BlankFormModelConfigurarAreaItem()
    {
        return PartialView("~/Views/Shared/EditorTemplates/FormModelConfigurarAreaItem", new FormModelConfigurarAreaItem ());
    }

1 Answer 1

4

If FormModelConfigurarAreaItem is partial view name then you have to write full name with extenstion which is FormModelConfigurarAreaItem.cshtml for Razor Engine and FormModelConfigurarAreaItem.ascx for ASPX engine:

return PartialView("~/Views/Shared/EditorTemplates/FormModelConfigurarAreaItem.cshtml", new FormModelConfigurarAreaItem ());
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.