Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET TextBox AutoCompleteType Property

ASP.NET TextBox AutoCompleteType Property


TextBox control TextBox Control


Definition and Usage

The AutoCompleteType property is used to set or return the AutoComplete category of the TextBox control.

The AutoComplete feature creates a list of values already entered in the text box. When the text box is used again, the list of entered values is displayed. The user can select a value directly instead of retyping a previously entered value.

Syntax

/>

 

property Description
cat Specifies the AutoComplete category.

Possible values:

  • BusinessCity - The category for the city of the business address.
  • BusinessCountryRegion - The category for the country/region of the business address.
  • BusinessFax - The category for the fax number of the business address.
  • BusinessPhone - The category for the phone number of the business address.
  • BusinessState - The category for the state of the business address.
  • BusinessStreetAddress - The category for the street address of the business address.
  • BusinessUrl - The category for the URL of the business website.
  • BusinessZipCode - The category for the postal code of the business address.
  • Cellular - The category for the mobile phone number.
  • Company - The category for the company name.
  • Department - The category for the department within the company.
  • Disabled - Disables the AutoComplete feature for the TextBox control.
  • DisplayName - The category for the displayed name of the user.
  • Email - The category for the user's email address.
  • FirstName - The category for the user's first name.
  • Gender - The category for the user's gender.
  • HomeCity - The category for the city of the home address.
  • HomeCountryRegion - The category for the country/region of the home address.
  • HomeFax - The category for the fax number of the home address.
  • Homepage - The category for the URL of the website.
  • HomePhone - The category for the phone number of the home address.
  • HomeState - The category for the state of the home address.
  • HomeStreetAddress - The category for the street of the home address.
  • HomeZipCode - The category for the postal code of the home address.
  • JobTitle - The category for the user's job title.
  • LastName - The category for the user's last name.
  • MiddleName - The category for the user's middle name.
  • None - No category is associated with the TextBox control. All TextBox controls with the same ID share the same value list.
  • Notes - Any supplementary information to include in the form category.
  • Office - The category for the location of the business office.
  • Pager - The category for the pager number.
  • Search - The category for keywords used to search web pages or websites.
  • |

    Example

    The following example sets the AutoCompleteType property to "FirstName":

    Demo Example »


    TextBox control TextBox Control