1

I'm using Custom Editor Templates in my view, and I would to know if is possible to obtain the same result from my controller.

<%: Html.EditorFor(model => model.Book) %>

Does anyone knows if it's possible?

1 Answer 1

1

I found a possible solution:

add an user control and call Html.EditorFor(model => model.Book) inside. Then in my controller I just have to call View(usercontrol,model)

Does anyone have a better idea?

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

1 Comment

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.