OnClientCompleteLast Property for French (Canada)
Gets or sets the name of a client-side function that is called on completion of the last QA control in the control. Read/write.
Usage
ASP.NET markup: | <speech:ApplicationControl OnClientCompleteLast="..." /> |
Get value: | String = ApplicationControl.OnClientCompleteLast; |
Set value: | ApplicationControl.OnClientCompleteLast = String; |
Data type: | String |
Required: | No |
Remarks
The value of the OnClientCompleteLast 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 last 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.OnClientCompleteLast
}
Parameters
None.
Return Value
None.
Example
The following example demonstrates the OnClientCompleteLast property that is used in a Date Application Speech Control.
<script>
function myClientCompleteLast() {
// OnClientCompleteLast 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"
OnClientCompleteLast="myClientCompleteLast"
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