OnClientNoReco Property
Gets or sets the name of a client-side function that is called when BabbleTimeout elapses. Read/write.
Usage
ASP.NET markup: | <speech:RecordSound OnClientNoReco="..." /> |
Get value: | String = RecordSound.OnClientNoReco; |
Set value: | RecordSound.OnClientNoReco = String; |
Data type: | String |
Required: | No |
Remarks
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, when BabbleTimeout elapses, causing the client onnoreco event to be raised. The function does not return any values.
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 RecordSound.OnClientNoReco
}
Parameters
- status
The error code returned in the event object.
Return Value
None.
Example
<script>
function myClientNoReco(obj) {
// OnClientReco routine
return true;
}
</script>
<speech:RecordSound
ID="RecordSound1"
Beep="True"
Type="audio/wav"
InitialTimeout="2500"
BabbleTimeout="2500"
MaxTimeout="5000"
SavePartialRecord="False"
PlaybackUrlBase="http://www.cpandl.com/playback/"
SavePath="d:\vdirs\playback"
Enabled="True"
OnClientNoReco="myClientNoReco"
runat="server">
</speech:RecordSound>
See Also
RecordSound Class | RecordSound Constructor | RecordSound Members | RecordSound Properties | RecordSound Methods | RecordSound Events | RecordSound Remarks