Is there a method for keeping the id I set for an asp .net control when it outputs to HTML?
问题 When I create a form, I try to make accessibility a top priority, but the output from asp .NET negates some of this. For example, when I set a label tag for an input tag, I create it a such: <label for="frmFirstName">First Name<span class="required">*</span></label> <asp:TextBox id="frmFirstName" CssClass="textbox" runat="server" /> But, when the HTML is output from the page, it is output as: <label for="frmFirstName">First Name<span class="required">*</span></label> <input name="ctl00