views:

491

answers:

2

I want to clear textbox's cache.Suppose you have logged into gmail again if you will sigout and log in, testbox for Username show an intellisense kind of thing.How to stop that ?

+6  A: 
<input type="text" name="ac" autocomplete="off" />

Source: http://www.w3.org/Submission/web-forms2/

Kobi
I assumed he was talking about an asp.net TextBox control...
Paolo Tedesco
note that in some browsers (ie and firefox for starters) this won't clear an existing cache (but it will stop other people from ever creating the cache)
Rob Fonseca-Ensor
+1  A: 

You should set the AutoCompleteType property to Disabled.

Check this msdn page for details.

Paolo Tedesco
Good point, I've missed the asp.net tag.
Kobi