Stop browser from filling textboxes with details Stop browser from filling textboxes with details asp.net asp.net

Stop browser from filling textboxes with details


  <input type="text" name="Username" autocomplete="off">

You can also put this on the form tag. Note this does not work consistently in all browsers.


The only solution that worked for me was to include two fields, one for login and one for the password with display: none<input type="text" style="display: none"> <input type="password" style="display: none">


if you set autocomplete="off"... the textbox will loose every words on its history...but if you want to prevent browser saved usernames and password, the best way is to put these tags in top of your page:

<input type="text" style="display: none"> <input type="password" style="display: none">