ApplicationControl.ClientActivationFunction Property
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Gets or sets the ClientActivationFunction property of QA controls that are created by the control. Read/write.
Namespace: Microsoft.Speech.Web.UI
Assembly: Microsoft.Speech.Web (in microsoft.speech.web.dll)
Syntax
'Declaration
<SRCategoryAttribute("Category_Speech")> _
<BindableAttribute(True)> _
<SRDescriptionAttribute("All_ClientActivationFunction")> _
<DefaultValueAttribute("")> _
Public Property ClientActivationFunction As String
[SRCategoryAttribute("Category_Speech")]
[BindableAttribute(true)]
[SRDescriptionAttribute("All_ClientActivationFunction")]
[DefaultValueAttribute("")]
public string ClientActivationFunction { get; set; }
Remarks
The script block that contains this function should be placed before the control that calls the function. For more information, see Authoring Notes.
Example
The following example demonstrates the ClientActivationFunction property that is used in the ZipCodeApplication 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="Please tell me your Zip Code"
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>
Thread Safety
All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.
Platforms
Development Platforms
Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition
Target Platforms
Windows Server 2003
See Also
Reference
ApplicationControl Class
ApplicationControl Members
Microsoft.Speech.Web.UI Namespace