OnClientDisconnected Property
Gets or sets the name of a client-side function that is called when the call is disconnected. Read/write.
Usage
ASP.NET markup: | <speech:DisconnectCall OnClientDisconnected="..." /> |
Get value: | String = DisconnectCall.OnClientDisconnected; |
Set value: | DisconnectCall.OnClientDisconnected = String; |
Data type: | String |
Required: | No |
Remarks
The value of the OnClientDisconnected 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 disconnected.
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 DisconnectCall.OnClientDisconnected
}
Parameters
- sender
The client-side DisconnectCall object. - cstaMessageDomObject
The Microsoft.SpeechServer.Dom.Results.Element object that contains the Smex message.
Return Value
None.
Example
<script>
function myClientDisconnected(obj, cstaMessageDomObject) {
// OnClientDisconnected routine
return true;
}
function myClientFailed(obj, cause, cstaMessageDomObject) {
// OnClientFailed routine
return false;
}
</script>
<form id="Form1" method="post" runat="server">
...
<speech:DisconnectCall
ID="DisconnectCall1"
SpeechIndex="2"
autopostback="True"
OnClientFailed="myClientFailed"
OnClientDisconnected="myClientDisconnected"
runat="server" />
...
</form>
See Also
DisconnectCall Class | DisconnectCall Constructor | DisconnectCall Members | DisconnectCall Properties | DisconnectCall Methods | DisconnectCall Events | DisconnectCall Remarks