ASP.NET MVC 3 input name and id in lowerCamelCase

I would like helpers in MVC to display all input tags with name and id in lowerCamelCase. Can this be done?

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

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

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

+4
source share
1 answer

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

+2
source

Source: https://habr.com/ru/post/1381991/


All Articles