3

I've tried to create a simple custom editor template for Decimal and Integer types:

@ModelType Decimal?
@Html.NumericBoxFor(Function(m) m)

and

@ModelType Integer?
@Html.NumericBoxFor(Function(m) m)

Saved them as ~/Views/Shared/EditorTemplates/Decimal.vbhtml and ~/Views/Shared/EditorTemplates/Integer.vbhtml (also tried Int32.vbhtml).

However my custom HtmlHelper function is never getting called. After searching the web and trying many things can't figure out.. What's wrong here?

2
  • 1
    I just found that in the application was a custom ViewEngine in place which screwed up paths (defined via global.asax). Removing it solves the issue. Commented Nov 21, 2012 at 5:57
  • Can you post your comment as the answer? Commented Nov 21, 2012 at 17:03

1 Answer 1

1

I just found that in the application was a custom ViewEngine in place which screwed up paths (defined via global.asax). Removing it solves the issue.

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.