Partilhar via


OnClientNoReco Property

  Microsoft Speech Technologies Homepage

Gets or sets the name of a client-side function that is called when the platform detects no recognition. Read/write.

Usage

ASP.NET markup: <speech:Dtmf OnClientNoReco="..." />
Get value: String = Dtmf.OnClientNoReco;
Set value: Dtmf.OnClientNoReco = String;
Data type: String
Required: No

Remarks

The purpose of the script is to examine the error code and to determine whether the RunSpeech dialog manager should continue execution on the current page or should navigate to the default error page. Different types of errors are distinguished by status codes. See the onerror and onnoreco events of the SALT dtmf element for a list of these codes.

The value of the OnClientNoReco property is the name of this custom client-side script function, without parameters or parentheses. The client-side dialog manager calls this function, using the following syntax, after detecting no recognition.

The script block that contains this function should be placed before the control that calls the function. For more information, see "Placement of Script Blocks" in Authoring Notes.

Syntax

function FunctionName ( int status )
{
     // Client-side code referenced by Dtmf.OnClientNoReco
}

Parameters

  • status
    The error code returned in the event object.

Return Value

None.

Example

<form id="Form1" method="post" runat="server">
  <script>
    function myClientNoReco() {
      // OnClientNoReco routine
      return true;
    }
  </script>
  ...
  <speech:Dtmf runat="server"
    ID="Dtmf1"
    PreFlush="True"
    InitialTimeout="2500"
    InterDigitTimeout="2500"
    EndSilence="2000">
    OnClientNoReco="myClientNoReco"
  </speech:Dtmf>
  ...
</form>

See Also

Dtmf Class | Dtmf Constructor | Dtmf Members | Dtmf Properties | Dtmf Methods | Dtmf Events | Dtmf Remarks