XPathAcceptConfirms Property
Gets or sets the path in the SML recognition results indicating that the confirm items were accepted. Read/write.
Usage
ASP.NET markup: | <speech:QA XPathAcceptConfirms="..." /> |
Get value: | String = QA.XPathAcceptConfirms; |
Set value: | QA.XPathAcceptConfirms = String; |
Data type: | String |
Required: | No |
Remarks
If the Confirms collection of the QA control is not empty and the XPathAcceptConfirms property is not set, the control throws an exception. If the XPathAcceptConfirms property is specified in a QA without a Confirms collection, it is ignored. XPathAcceptConfirms must be a valid XML path. An invalid XML path causes a redirection to the default error page during run time.
Example
<form id="Form1" method="post" runat="server">
...
<Speech:QA ID="CfmToppingSize" runat="server" XPathAcceptConfirms="/SML/Accept" XPathDenyConfirms="/SML/Deny"
FirstInitialTimeout="1000">
<Prompt PromptSelectFunction="CfmToppingSizePrompt" BargeIn="False" ID="Prompt3"></Prompt>
<Reco InitialTimeout="3000" BabbleTimeout="10000" EndSilence="1000" Reject="0.5" ID="Reco3">
<Grammars>
<Speech:Grammar Src="Grammars/CfmToppingSize.grxml" ID="Grammar3"></Speech:Grammar>
</Grammars>
</Reco>
<Confirms>
<Speech:Answer ConfirmThreshold="1" SemanticItem="siTopping" ID="Topping_QACfmToppingSize" XPathTrigger="/SML/Correction/Topping"></Speech:Answer>
<Speech:Answer ConfirmThreshold="1" SemanticItem="siSize" ID="Size_QACfmToppingSize" XPathTrigger="/SML/Correction/Size"></Speech:Answer>
</Confirms>
</Speech:QA>
...
</form>
See Also
QA Class | QA Constructor | QA Members | QA Properties | QA Methods | QA Events | QA Remarks | QA Client Object