Disable textBox function to display old data entered into it

When the user starts typing their username into the textBox, the dropdown shows the old data. How can I clear this ?. This is a classroom, and many students log in from the same PC every day, I don't want the student to see the names of their peers.

+2


a source to share


2 answers


If it is an asp.net TextBox control, you can also set its AutoCompleteType property Disabled

.



+4


a source


Add this attribute to the text box:



autocomplete="off"

      

+2


a source







All Articles