Categories
C#.NET Google Microsoft VB.NET Visual Studio W3C Windows 7 Windows 8 / 8.1 Windows Server 2008 Windows Server 2012 Windows Vista Windows XP

W3C validator – “there is no attribute “AutoComplete””

When you try to validate your page with W3C Markup Validation Service at the line when you have a TextBox with AutoComplete attribute like this:

<asp:TextBox ID="myTextBox" runat="server" AutoComplete="Off" />

show the following error message:

there is no attribute “AutoComplete”

Solution:
Change
AutoComplete=”Off”
to
AutoCompleteType=”None”

<asp:TextBox ID="myTextBox" runat="server" AutoCompleteType="None" />

Did my solution solve your problem? Leave a reply.