Last post Oct 20, 2007 09:33 AM by kyleq
Oct 18, 2007 06:14 PM|kyleq|LINK
When the postad.aspx page and some others are displayed in a viewer some of the textbox fields have a white background and some have a yellow background and seem to be recessed. There is no visible difference in markup and they all have the same css reference.
Why does it do that?
Oct 18, 2007 07:52 PM|Mehdi6002|LINK
Are you sure that you do not have any validation on those controls... ?
For example required fields validator.?
Oct 18, 2007 07:53 PM|rmaiya|LINK
I think yellow background was set by your browser. if you have some kind of plug ins that will remember the fields you already entered in previous websites then if you have similar names used in your page then those fields get highlighted by browser [like
autocomplete or some other plugins( i dont remember)]
for ex: Name, Address
Oct 18, 2007 08:07 PM|ashmetry|LINK
rmaiya is correct. If you have Google Toolbar for example then you will get that functionality, I think IE7 has something similar too??. Yellow background means that it can be autocompleted for you.
You can control that from the Property AutoCompleteType of the TextBox control.
Not having it will make the browser "guess" how to fill it. Forcing a type in the AutoCompleteType property "should" give the browser a hint on how to fill it. I belive that setting AutoCompleteType=None should turn this functionality off.
Hope that helps.
Oct 20, 2007 09:33 AM|kyleq|LINK
That was close.
All of my textbox autocomplete type properties were set to none with no change in the results.
I do have the Google toolbar and it has an option to color the autofill fields with a yellow background. To find it click on settings, options, autofill settings. Then check or clear the "Highlight" checkbox in the lower left. After it was cleared all
of my textboxes have the correct background.