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

In my website, i have chosen save username and password when I was logged in. Now each time in my application wherever I have username and password textbox, it displayed data from cookies.

How can I prevent it??

Thanks in Advance.
Posted

1 solution

use autocomplete property

ASP
<asp:TextBox ID="TextBox1" runat="server" Width="365px" autocomplete="off"></asp:TextBox>
 
Share this answer
 
v2
Comments
bbirajdar 16-Jan-12 9:50am    
Yes. I agree with the solution .. Five *s for you
C Srinivasan 25-May-12 2:31am    
but the above seem to be not working, see the below scenario..
We have published the site without autocomplete off and user saved the username and password in cookie and after some days we implement autocomplete = off. Now if you load the app on machine where the username and password already saved, it loads them by default. If you clear the cookie then its working as we expected.
So reply me how to fix the above scenario.. check both IE and Firefox

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