Home > ASP .Net > Textbox – supress previous entries – auto complete off

Textbox – supress previous entries – auto complete off

Hi,

I am developing a website and noticed that all my text boxes were repeating the content that had been entered previously.

Found this blog here;
http://ryanfarley.com/blog/archive/2005/02/23/1739.aspx (I like ryans stuff).

In short you can turn this off via the autocomplete=”off” property.
This can be set in a number of ways:

  1. On the form, this disables it for all content on the form. This is really handy if you are using master pages as add it to your master page and job done, your entire site now stops prompting.
  2. On a control by control basis;
    <asp:TextBox ID="txtText" runat="server" autocomplete="off" />

Note: Visual studio will complain that it does not know this property but it works none the less so just ignore VS.

Cheers

Advertisements
Categories: ASP .Net
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: