Partilhar via


OnClientDone Property

  Microsoft Speech Technologies Homepage

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

Usage

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

Remarks

The value of the OnClientDone 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 recording is complete.

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 ()
{
     // Client-side code referenced by RecordSound.OnClientDone
}

Parameters

None

Return Value

None

Example

<script>
  function myClientDone() {
    // OnClientDone routine
    return true;
  }
</script>
<speech:RecordSound runat="server"
  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"
  OnClientDone="myClientDone" >
</speech:RecordSound>

See Also

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