I have a few places where I use a class via jquery – for example, to add the datepicker to a text file, my textbox declaration looks like:
<asp:TextBox ID="dateField" runat="server" CssClass="fieldSmall datePicker" />
However, this leads to a warning in VS2008 that the datePicker “class or CssClass value is not defined”
I doesn’t feel right to create an emply CSS class just to elminiate this warning. Is there another way to do it?
You’ll need to turn off HTML Validation:
And CSS file error detection: