How do I get ASP.NET to stop generating "name" attributes on input tags
Posted on 2008-10-25
I have noticed that ASP.NET generates identical name and id attributes on <input> tags generated from <asp:TextBox> controls. However a <span> tag generated from an <asp:Label> control only has the id attribute generated.
It would appear the "name" attribute is useless in this case, as it has the same value as the id for all elements, and the name tag is deprecated.
I would like to stop asp.net from generating Name attributes - I would save 100kb of bandwidth in my HTTPResponse.