Compartir a través de


SemanticItem Property for French (Canada)

  Microsoft Speech Technologies Homepage

Gets or sets the ID of the SemanticItem control that receives the currency value. Read/write.

Usage

ASP.NET markup: <speech:Currency SemanticItem="..." />
Get value: String = Currency.SemanticItem;
Set value: Currency.SemanticItem = 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">
  ...
  <asp:textbox id="TextBox1" runat="server"></asp:textbox>

  <speech:SemanticMap id="SemanticMap1" runat="server">
    <speech:SemanticItem ID="siDollars" TargetElement="TextBox1" TargetAttribute="value" 
      BindOnChanged="True" runat="server">
    </speech:SemanticItem>
  </speech:SemanticMap>

  <speech:Currency 
    id="Currency1" 
    SemanticItem="siDollars" 
    QuestionPrompt="quel est le montant en dollars?"
    PreferDollars="True"
    InitialTimeout="2500"
    runat="server">
  </speech:Currency>
  ...
</form>

See Also

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