Share via


MonthSemanticItem Property for French (Canada)

  Microsoft Speech Technologies Homepage

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

Usage

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

Remarks

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

Attribute data

When the Date control has collected a date successfully, it places the following attributes in the MonthSemanticItem property.

Attribute Name Data Element
spokenText The complete text of the date spoken by the user
assumed True if the month is assumed or derived;
false if the month is explicit.

Application authors can reference SemanticItem attribute data by means of the GetAttribute method of the client-side SemanticItem object.

Example

<form id="Form1" method="post" runat="server">
  ...
  <speech:semanticmap id="SemanticMap1" runat="server">
    <speech:SemanticItem ID="DaySemItem" TargetAttribute="value" 
      TargetElement="tbDay" runat="server">
    </speech:SemanticItem>
    <speech:SemanticItem ID="MonthSemItem" TargetAttribute="Text" 
      BindAt="server" TargetElement="tbMonth" runat="server">
    </speech:SemanticItem>
    <speech:SemanticItem ID="YearSemItem" TargetAttribute="value" 
      BindOnChanged="True" TargetElement="tbYear" runat="server">
    </speech:SemanticItem>
  </speech:semanticmap>

  <speech:date 
    id="Date1" 
    QuestionPrompt="quand est-ce que vous aimeriez voyager?" 
    DateContext="Future"
    DaySemanticItem="DaySemItem" 
    MonthSemanticItem="MonthSemItem"
    YearSemanticItem="YearSemItem" 
    SpeechIndex="1000" 
    OnClientActive="MyClientActive"
    runat="server">
  </speech:date>

  <asp:textbox id="tbDay" runat="server"></asp:textbox>
  <asp:TextBox id="tbMonth" runat="server"></asp:TextBox>
  <asp:TextBox id="tbYear" runat="server"></asp:TextBox>
  ...
</form>

See Also

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