Introduction
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 categoryBusinessCountryRegion
- Country/region in the business categoryBusinessFax
- Fax number in the business categoryBusinessPhone
- Phone number in the business categoryBusinessState
- State in the business categoryBusinessStreetAddress
- Street address in the business categoryBusinessUrl
- Web site URL in the business categoryBusinessZipCode
- ZIP code in the business categoryCellular
- Phone number in the mobile-phone categoryCompany
- Business name in the business categoryDepartment
- Department in the business categoryDisabled
- AutoComplete feature is disabledDisplayName
- Name to display in the user categoryEmail
- E-mail in the user categoryFirstName
- First name in the user categoryGender
- Gender in the user categoryHomeCity
- Home city in the user categoryHomeCountryRegion
- Home country/region in the user categoryHomeFax
- Fax number in the user categoryHomepage
- Web site URL in the user categoryHomePhone
- Phone number in the user categoryHomeState
- Home state in the user categoryHomeStreetAddress
- Home street in the user categoryHomeZipCode
- ZIP code in the user categoryJobTitle
- Job title in the user categoryLastName
- Last name in the user categoryMiddleName
- Middle name in the user categoryNone
- No category specifiedNotes
- Extra information in the formOffice
- Office location in the business categoryPager
- Phone number in the pager categorySearch
- Keywords in the search category
Using the Code
For example:
<asp:TextBox ID="txtEmail" runat="server" AutoCompleteType="Email"></asp:TextBox>