Partilhar via


ZipCodeSemanticItem Property for French (Canada)

  Microsoft Speech Technologies Homepage

Gets or sets the ID of the SemanticItem control receiving the U.S. ZIP Code value. Read/write.

Usage

ASP.NET markup: <speech:ZipCode ZipCodeSemanticItem="..." />
Get value: String = ZipCode.ZipCodeSemanticItem;
Set value: ZipCode.ZipCodeSemanticItem = String;
Data type: String
Required: Yes

Remarks

The control throws an ArgumentNullException if this property is not specified or an ArgumentException if this property does not specify a valid SemanticItem on the page.

Example

<form id="Form1" method="post" runat="server">
  ...
  <speech:ZipCode id="ZipCode1" runat="server"
    QuestionPrompt="dites-moi votre Code Postal s'il-vous-plaît" 
    ZipcodeSemanticItem="siZip" 
    ExtensionSemanticItem="siExt">
  </speech:ZipCode>

  <asp:TextBox id="TextBox1" runat="server"></asp:TextBox>
  <asp:TextBox id="TextBox2" runat="server"></asp:TextBox>

  <speech:SemanticMap id="SemanticMap1" runat="server">
      <speech:SemanticItem ID="siZip" BindOnChanged="True" runat="server" 
        TargetAttribute="TextBox1" TargetElement="value" >
     </speech:SemanticItem>
      <speech:SemanticItem ID="siExt" BindOnChanged="True" runat="server" 
        TargetAttribute="TextBox2" TargetElement="value" >
     </speech:SemanticItem>
  </speech:SemanticMap>
  ...
</form>

See Also

ZipCode Class | ZipCode Constructor | ZipCode Members | ZipCode Properties | ZipCode Methods | ZipCode Events | ZipCode Remarks