Compartir a través de


AllowHolidays Property for French (Canada)

  Microsoft Speech Technologies Homepage

Gets or sets whether holiday names are accepted. Read/write.

Usage

ASP.NET markup: <speech:Date AllowHolidays="..." />
Get value: Boolean = Date.AllowHolidays;
Set value: Date.AllowHolidays = Boolean;
Data type: System.Boolean
Required: No; Default: True

Remarks

If AllowHolidays is set to True, the control recognizes holiday names such as "Christmas."

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"
    AllowHolidays="True"
    AllowNumeralDates="True"
    AllowRelativeDates="True"
    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