DaySemanticItem Property for French (Canada)
Gets or sets the ID of the SemanticItem control that receives the day value. Read/write.
Usage
ASP.NET markup: | <speech:Date DaySemanticItem="..." /> |
Get value: | String = Date.DaySemanticItem; |
Set value: | Date.DaySemanticItem = 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 DaySemanticItem property.
Attribute Name | Data Element |
---|---|
spokenText | The complete text of the date spoken by the user |
assumed | True if the day is assumed or derived; false if the day 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"
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