I want my textbox to NOT suggest the old values (when clicked) entered in it before.
Asked
Active
Viewed 3,543 times
3
-
2Good for you. Did you have a question? – David Arno Nov 13 '13 at 07:27
-
Did you try anything? – Soner Gönül Nov 13 '13 at 07:28
-
Your browser is remembering the values. you can use autocomplete="off" attribute. If that is your question... – Eugène Nov 13 '13 at 07:28
-
Not exactly clear what you are asking... But maybe searching for "disable autocomplete IE" will give an answer. – Alexei Levenkov Nov 13 '13 at 07:29
-
Yes. I'm sorry I forgot the question. But thank you for the solutions. – eirishainjel Nov 13 '13 at 07:33
-
You can enable/disable viewstate using the property of the control (EnableViewState) or even at page level. EnableViewState is enabled by default on TextBoxes. If it is turned on, then it WILL keep your values between postbacks. – Rohit Vyas Nov 13 '13 at 07:34
-
I also tried your answer sir. It also works. Thank you so much :) – eirishainjel Nov 13 '13 at 07:47
2 Answers
2
You can set its AutoCompleteType property to Disabled
.
<asp:textbox id="TextBox1"
autocompletetype="Disabled"
runat="server"/>

Ε Г И І И О
- 11,199
- 1
- 48
- 63
2
You can set the autocomplete
attribute in your html element to false
:
<asp:TextBox ID="TextBox1" autocomplete="false" runat="server"></asp:TextBox>
You can also do it for your entire form:
<form id="myForm" autocomplete="off" method="post" runat="server">

Dimitar Dimitrov
- 14,868
- 8
- 51
- 79