Click here to Skip to main content
12,349,778 members (28,768 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


1 bookmarked

AutoCompleteType property of ASP.NET TextBox Control

, 12 Aug 2013 CPOL
Rate this:
Please Sign up or sign in to vote.
A reference for auto-complete in ASP.NET


The feature of Auto-Complete helps users to fill in forms easily by displaying the previously typed information. The data is stored in the browser, it saves precious user time as well as it is dangerous since your typed data can be accessed by any spyware and put you in trouble.

ASP.NET TextBox has a property called AutoCompleteType which takes the following categories and displays the previously typed values:

  • BusinessCity - City in the business category
  • BusinessCountryRegion - Country/region in the business category
  • BusinessFax - Fax number in the business category
  • BusinessPhone - Phone number in the business category
  • BusinessState - State in the business category
  • BusinessStreetAddress - Street address in the business category
  • BusinessUrl - Web site URL in the business category
  • BusinessZipCode - ZIP code in the business category
  • Cellular - Phone number in the mobile-phone category
  • Company - Business name in the business category
  • Department - Department in the business category
  • Disabled - AutoComplete feature is disabled
  • DisplayName - Name to display in the user category
  • Email - E-mail in the user category
  • FirstName - First name in the user category
  • Gender - Gender in the user category
  • HomeCity - Home city in the user category
  • HomeCountryRegion - Home country/region in the user category
  • HomeFax - Fax number in the user category
  • Homepage - Web site URL in the user category
  • HomePhone - Phone number in the user category
  • HomeState - Home state in the user category
  • HomeStreetAddress - Home street in the user category
  • HomeZipCode - ZIP code in the user category
  • JobTitle - Job title in the user category
  • LastName - Last name in the user category
  • MiddleName - Middle name in the user category
  • None - No category specified
  • Notes - Extra information in the form
  • Office - Office location in the business category
  • Pager - Phone number in the pager category
  • Search - Keywords in the search category

Using the Code

For example:

<asp:TextBox ID="txtEmail" runat="server" AutoCompleteType="Email"></asp:TextBox>


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Srinivas Kalabarigi
Technical Lead
India India

Around 10 years of software development experience and involved in analysis, design, development, testing and deployment of enterprise web applications for government, healthcare and banking domain with good exposure to object-oriented design, software architectures, design patterns, test-driven development and agile practices.

You may also be interested in...

Comments and Discussions

-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160621.1 | Last Updated 13 Aug 2013
Article Copyright 2013 by Srinivas Kalabarigi
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid