Click here to Skip to main content
15,893,644 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

How to clear the Autocomplete textbox control value.
Posted
Comments
[no name] 18-Nov-15 5:15am    
How to clear the AutoComplete TextBox Value using javascript?

Use AutoCompleteType="none" textbox property. it removes all values from textbox which are entered before.
 
Share this answer
 
v2
you need to set following two property of textbox in the following order

C#
textBox1.AutoCompleteMode = AutoCompleteMode.None;
textBox1.AutoCompleteSource = AutoCompleteSource.None;



Thanks
 
Share this answer
 
v2
Try this,


C#
TextBox1.AutoCompleteType = AutoCompleteType.Disabled;


Hope it helps..
 
Share this answer
 
Comments
Dalek Dave 20-Dec-11 3:38am    
Good answer.
Shobana16 20-Dec-11 3:45am    
Thank u..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900