Tuesday, March 11, 2008

IE Autocomplete Dropdown wrong location in Modal/Dialog window ASP.NET 2.0

I recently discover that if the AutoCompleteType attribute is not specify explicitly in the input control IE will display the autocomplete options dropdown in offset location in modal/dialog windows.

This is not the case if you are using Yahoo's tool bar or Google's auto fill feature in its tool bar, but IE is more stupid.

I fixed this issue my explicitly settings the AutoCompleteType attribute in the Textbox control.

Example textbox for first name field.


<asp:TextBox ID="txtFirstName" CssClass="input" runat="server" AutoCompleteType="firstname"></asp:TextBox>




By setting the AutoCompleteType attribute the problem was corrected.

No comments:

Post a Comment