Prop Webcontrol Textbox Autocompletetype
# ASP.NET TextBox AutoCompleteType Property
* * TextBox Control](#)
* * *
## Definition and Usage
The AutoCompleteType property is used to set or return the AutoComplete type for a TextBox control.
The AutoComplete feature creates a list of values that have been entered in a text box. When the text box is used again, the list of previously entered values is displayed. The user can select a value directly without having to retype it.
## Syntax
_
| Property | Description |
| --- | --- |
| cat | Specifies the AutoComplete type. Possible values: * BusinessCity - Category for the city of the business address. * BusinessCountryRegion - Category for the country/region of the business address. * BusinessFax - Category for the fax number of the business address. * BusinessPhone - Category for the phone number of the business address. * BusinessState - Category for the state of the business address. * BusinessStreetAddress - Category for the street address of the business address. * BusinessUrl - Category for the URL of the business website. * BusinessZipCode - Category for the postal code of the business address. * Cellular - Category for the cellular phone number. * Company - Category for the company name. * Department - Category for the department within the company. * Disabled - Disables the AutoComplete feature for the TextBox control. * DisplayName - Category for the display name for the user. * Email - Category for the user's email address. * FirstName - Category for the user's first name. * Gender - Category for the user's gender. * HomeCity - Category for the city of the home address. * HomeCountryRegion - Category for the country/region of the home address. * HomeFax - Category for the fax number of the home address. * Homepage - Category for the URL of the website. * HomePhone - Category for the phone number of the home address. * HomeState - Category for the state of the home address. * HomeStreetAddress - Category for the street address of the home address. * HomeZipCode - Category for the postal code of the home address. * JobTitle - Category for the user's job title. * LastName - Category for the user's last name. * MiddleName - 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 - Category for any additional information to be included in the form. * Office - Category for the location of the business office. * Pager - Category for the pager number. * Search - Category for keywords used to search for a webpage or website. |
* * *
## Example
The following example sets the AutoCompleteType property to "FirstName":
[Demo Example Β»](#)
* * TextBox Control](#)
YouTip