Friday 7 June 2013

  • How to disable autocomplete in asp.net textbox ?

    Auto complete facility provides good thing which is you not need to remember a complete phrase or keyword,you just need to write one/two character of it,then you can see automatically many options starting with character you have typed.

    For example,you are feeling online form of ticket booking and you are asked to enter your city,so suppose you have write "Ahm" then system will automatically show "Ahmedabad".So,this is how to use auto complete.

    Now,a big question is that what to do where auto complete is not needed?



    In above figure you can see that,there is one login box and everybody knows,user name should not to be shown to all visitors ,it should be private for particular.So,how to stop it?

    Friends,there is no need to worry,solution is here.You need to type just autocomplete="off" in the syntax of the textbox,example is given below. 

     <asp:TextBox ID="TextBox1" runat="server" Width="195px" autocomplete="off"></asp:TextBox>

    That's it.Now try to run the program.

    If you like this post then give your reviews and share with your friends.

  • 0 comments:

    Post a Comment

    Copyright @ 2013 Programming Languages.