FallbackCount Property for French (Canada)
Gets or sets the number of times that the control unsuccessfully attempts to collect a full date before it switches to its fallback mode, and attempts to collect the day, the month and the year separately. Read/write.
Usage
ASP.NET markup: | <speech:Date FallbackCount="..." /> |
Get value: | Int = Date.FallbackCount; |
Set value: | Date.FallbackCount = Int; |
Data type: | Int |
Required: | No; Default: 3 |
Remarks
When a Date control is activated, if its FallbackCount is greater than zero, it collects a whole date; if its FallbackCount is zero, it collects date components. Each correction, each Silence and each noreco event decrements the FallbackCount value.
If FallbackCount is less than zero, the control throws an ArgumentOutOfRangeException.
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"
FallbackCount="0"
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