4

I would like the helpers in MVC to render all input tags with the name and id in lowerCamelCase. Is it possible to do?

Examel: @Html.TextboxFor(m => m.FirstName)

Default: <intput type="text" name="FirstName" id="FirstName" />

I would like: <intput type="text" name="firstName" id="firstName" />

1 Answer 1

2

You can create custom HTML helpers or extend existing ones. See: http://www.aspnetwiki.com/page:creating-custom-html-helpers

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.