How to Disable Auto-Fill option for Textbox only?

 Posted by vishalneeraj-24503 on 12/12/2013 | Category: ASP.NET Interview questions | Views: 2023 | Points: 40
Answer:

Set autocomplete = "off" for particular Textbox.

For Example:-
If want to disable Autocomplete feature for a particular Textbox,then we will write as:-

<asp:TextBox runat = "server" ID ="txt_payment" autocomplete = "off"></asp:TextBox>


If we have enabled Auto-fill features in our browser, then each and every time when we enter any value in TextBox,then a Dropdown list appears with values in
that TextBox.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response