Partilhar via


OnClientTransferred Property

  Microsoft Speech Technologies Homepage

Gets or sets the name of a client-side function that is called when the call is transferred. Read/write.

Usage

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

Remarks

The value of the OnClientTransferred 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, when the call is transferred.

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 ( object sender, object cstaMessageDomObject )
{
     // Client-side code referenced by TransferCall.OnClientTransferred 
}

Parameters

  • sender
    The client-side TransferCall object.
  • cstaMessageDomObject
    The Microsoft.SpeechServer.Dom.Results.Element object that contains the Smex message.

Return Value

None.

Example

<script>
  function MyClientTransferred(obj, cstaMessageDomObject) {
    // OnClientTransferred routine
    return true;
  }
  function myClientFailed(obj, cause, cstaMessageDomObject) {
    // OnClientFailed routine
    return false;
  }
</script>
<form id="Form1" method="post" runat="server">
  ...
  <speech:TransferCall 
    ID="transferCall1" 
    autopostback="False"
    TransferredTo="95551212"
    OnClientTransferred="MyClientTransferred"
    OnClientFailed="MyClientFailed"
    runat="server" />
  ...
</form>

See Also

TransferCall Class | TransferCall Constructor | TransferCall Members | TransferCall Properties | TransferCall Methods | TransferCall Events | TransferCall Remarks | TransferCall Client Object