AccessMode Property for French (Canada)
Gets or sets the setting of a parameter that controls the behavior of the control when the user selects a data item. Read/write.
Usage
ASP.NET markup: | <speech:DataTableNavigator AccessMode="..." /> |
Get value: | String = DataTableNavigator.AccessMode; |
Set value: | DataTableNavigator.AccessMode = String; |
Data type: | AccessMode |
Required: | No; Default: Ignore |
Remarks
Possible values of the AccessMode property are:
Ignore
The control ignores the spoken element, and plays the noreco prompt.Select
The control navigates to the first column entry and asks the user the "next command" question.Fetch
The control places information about the entry in its SemanticItem and exits. If recognition confidence of the spoken element is below the value of the ConfirmThreshold property, the control will ask the user for confirmation.If the DataBindField property of the control specifies a data field, then the data placed in the SemanticItem is the text of the bound item. If the DataBindField property is not set, then the data placed in the SemanticItem is the row index of the bound item.
When the AccessMode property is Fetch or Select, the control builds a grammar rule that specifies the words the user can speak in order to fetch or select a row. When creating this rule, the control evaluates the following three properties in the following order:
- GrammarTemplate
If a GrammarTemplate property is defined, the control builds the rule using data from each row as specified by the GrammarTemplate property. - DataTextField
If a DataTextField property is defined, the control builds the rule using data from each row as specified by the DataTextField property. - DataHeaderFields
If GrammarTemplate and DataTextField properties are not specified, the control builds the rule using data from each row as specified by the DataHeaderFields property. The DataHeaderFields property is required, and will always be defined.
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="SemItemNav" runat="server"
TargetElement="TextBox1" TargetAttribute="value" BindOnChanged="True">
</speech:SemanticItem>
</speech:semanticmap>
<speech:DataTableNavigator
id="Navigator1"
QuestionPrompt="météo par état"
DataHeaderFields="ville,état"
DataContentFields="minimum,maximum,conditions"
EndSilence="2500"
AccessMode="Select"
ShortInitialTimeout="2000"
SemanticItem="SemItemNav"
runat="server">
</speech:DataTableNavigator>
...
</form>
See Also
DataTableNavigator Class | DataTableNavigator Constructor | DataTableNavigator Members | DataTableNavigator Properties | DataTableNavigator Methods | DataTableNavigator Events | DataTableNavigator Remarks | DataTableNavigator Client Object