ASP tags and class attribute

angelina

New Member
I've been working on someone's project and noticed Visual Studio produces a message for each ASP tag that has a class attribute. For example: Attribute 'class' is not a valid attribute of element 'TextBox'.If I visit the website it seems to work correctly. An example that produces the message looks like this:\[code\]<asp:TextBox class="makeInline loginItem" ID="UserName" runat="server"></asp:TextBox>\[/code\]On the website it becomes this:\[code\]<input type="text" class="makeInline loginItem" id="Login1_UserName" name="Login1$UserName">\[/code\]So it looks like the class attribute gets carried over to the HTML tag. Is this fine or is there a better way to do this?
 
Back
Top