Freigeben über


OnClientComplete Property for French (Canada)

  Microsoft Speech Technologies Homepage

Gets or sets the OnClientComplete property of QA controls that are created by the control. Read/write.

Usage

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

Remarks

The value of the OnClientComplete property is the name of a custom client-side script function, without parameters or parentheses. The client-side dialog manager calls this function, using the following syntax, after the QA control has completed.

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

string FunctionName ()
{
// Client-side code referenced by ApplicationControl.OnClientComplete
}

Parameters

None.

Return Value

None.

Example

The following example demonstrates the OnClientComplete property that is used in a Date Application Speech Control.

<script>
  function myClientComplete() {
    // OnClientComplete routine
    return true;
  }
</script>

<form id="Form1" method="post" runat="server">
  ...
  <speech:Date 
    id="Date1" 
    QuestionPrompt="quand est-ce que vous aimeriez voyager?" 
    DateContext="Future"
    AllowHolidays="True"
    AllowNumeralDates="True"
    AllowRelativeDates="True"
    DaySemanticItem="DaySemItem" 
    MonthSemanticItem="MonthSemItem"
    YearSemanticItem="YearSemItem" 
    ConfirmThreshold="0.6" 
    OnClientComplete="myClientComplete"
    runat="server">
  </speech:date>

  <asp:textbox id="tbDay" runat="server"></asp:textbox>
  <asp:TextBox id="tbMonth" runat="server"></asp:TextBox>
  <asp:TextBox id="tbYear" runat="server"></asp:TextBox>
  ...
</form>

See Also

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