ClientActivationFunction Property for French (Canada)
Gets or sets the ClientActivationFunction property of QA controls that are created by the control. Read/write.
Usage
ASP.NET markup: | <speech:ApplicationControl ClientActivationFunction="..." /> |
Get value: | String = ApplicationControl.ClientActivationFunction; |
Set value: | ApplicationControl.ClientActivationFunction = String; |
Data type: | String |
Required: | No; Default: True |
Remarks
For more information about the ClientActivationFunction, see QA.ClientActivationFunction.
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.
Example
The following example demonstrates the ClientActivationFunction property that is used in the ZipCode Application Speech Control.
<script language="jscript">
function myNeedZip() {
return (siZip.IsEmpty());
}
</script>
<form id="Form1" method="post" runat="server">
...
<speech:ZipCode id="ZipCode1" runat="server"
QuestionPrompt="dites-moi votre Code Postal s'il-vous-plaît"
ClientActivationFunction="myNeedZip"
ZipcodeSemanticItem="siZip"
ExtensionSemanticItem="siExt"
PromptSelectFunction="myPromptSelectFunction">
</speech:ZipCode>
<asp:TextBox id="TextBox1" runat="server"></asp:TextBox>
<asp:TextBox id="TextBox2" runat="server"></asp:TextBox>
<speech:SemanticMap id="SemanticMap1" runat="server">
<speech:SemanticItem ID="siZip" BindOnChanged="True" runat="server"
TargetAttribute="TextBox1" TargetElement="value" >
</speech:SemanticItem>
<speech:SemanticItem ID="siExt" BindOnChanged="True" runat="server"
TargetAttribute="TextBox2" TargetElement="value" >
</speech:SemanticItem>
</speech:SemanticMap>
...
</form>
See Also
ApplicationControl Class | ApplicationControl Constructor | ApplicationControl Members | ApplicationControl Properties | ApplicationControl Methods | ApplicationControl Events | ApplicationControl Remarks