Easy Tutorial
❮ Prop Webcontrol Radiobuttonlist Repeatlayout Control Htmltextarea ❯

ASP.NET TextBox AutoCompleteType Property



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 that have been entered in the text box. When the text box is used again, the list of previously entered values is displayed. Users can directly select a value from this list instead of retyping previously entered values.

Syntax

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

Example

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


❮ Prop Webcontrol Radiobuttonlist Repeatlayout Control Htmltextarea ❯