Latest web development tutorials

propiedad ASP.NET TextBox autocompletetype

controles TextBox controles TextBox

Definición y Uso

Autocompletetype conjuntos de propiedades o devuelve el tipo de control TextBox Autocompletar.

característica Autocompletar puede crear una lista de valores introducidos en el cuadro de texto. Cuando se utiliza el cuadro de texto de nuevo, se mostrará la lista de los valores introducidos. Los usuarios pueden seleccionar directamente los valores sin la necesidad de volver a escribir el valor anterior se ha introducido.

gramática

<asp:TextBox AutoCompleteType="cat" runat="server"/>

属性 描述
cat 规定 AutoComplete 种类。

可能的值:

  • BusinessCity - 办公地址所在城市类别。
  • BusinessCountryRegion - 办公地址所在国家/地区类别。
  • BusinessFax - 办公地址的传真号码类别。
  • BusinessPhone - 办公地址的电话号码类别。
  • BusinessState - 办公地址所在州类别。
  • BusinessStreetAddress - 办公地址所在街道地址类别。
  • BusinessUrl - 业务网站的 URL 类别。
  • BusinessZipCode - 办公地址的邮政编码类别。
  • Cellular - 移动电话号码类别。
  • Company - 企业名称类别。
  • Department - 企业内的部门类别。
  • Disabled - 为 TextBox 控件禁用自动完成功能。
  • DisplayName - 为该用户显示的名称类别。
  • Email - 用户的电子邮件地址类别。
  • FirstName - 用户名类别。
  • Gender - 用户性别类别。
  • HomeCity - 家庭地址所在城市类别。
  • HomeCountryRegion - 家庭地址所在国家/地区类别。
  • HomeFax - 家庭地址的传真号码类别。
  • Homepage - 网站的 URL 类别。
  • HomePhone - 家庭地址的电话号码类别。
  • HomeState - 家庭地址所在州类别。
  • HomeStreetAddress - 家庭地址所在街道类别。
  • HomeZipCode - 家庭地址的邮政编码类别。
  • JobTitle - 用户的职务类别。
  • LastName - 用户的姓氏类别。
  • MiddleName - 用户的中名类别。
  • None - 无任何类别与 TextBox 控件相关联。具有相同 ID 的所有 TextBox 控件都共享同一值列表。
  • Notes - 要包含在窗体类别中的任何补充信息。
  • Office - 业务办公室所在位置类别。
  • Pager - 寻呼机号码类别。
  • Search - 用于搜索网页或网站的关键字类别。


Ejemplos

Los siguientes ejemplos se ponen autocompletetype propiedad a "Nombre":

<form runat="server">
<asp:TextBox id="tb1" runat="server" AutoCompleteType="FirstName" />
</form>

La demostración >>

controles TextBox controles TextBox