DanSogaard
DanSogaard

Reputation: 722

disable textBox ability to display old data typed in it

When user start typing in their username in textBox field, a dropdown list shows old data. How can I clear this?. It's a class room and many students logs in from the same pc everyday, I don't want the student to see his mates usernames.

Upvotes: 2

Views: 2902

Answers (2)

Paolo Tedesco
Paolo Tedesco

Reputation: 57172

If it's an asp.net TextBox control you can also set its AutoCompleteType property to Disabled.

Upvotes: 4

Andrew Hare
Andrew Hare

Reputation: 351466

Add this attribute to the textbox:

autocomplete="off"

Upvotes: 3

Related Questions