I found some strange behavior of HTML helpers for me.
It works fine in MVC 1
But have a problem in MVC 2 and MVC 3
So, I have next layout:
in MVC 2:
<%= Html.Hidden("123Test", "Without ID") %>
<%= Html.Hidden("Test123", "With ID") %>
or in MVC 3:
@Html.Hidden("123Test", "Without ID")
@Html.Hidden("Test123", "With ID")
They both generates next markup:
<input name="123Test" type="hidden" value="Without ID" />
<input id="Test123" name="Test123" type="hidden" value="With ID" />
As you can see when name starts with number then ID would not be rendered.
So my question: is there exists some setting that switch off this behavior?
Or it can be addressed to MVC developers?