Partilhar via


PromptDatabase Property for French (Canada)

  Microsoft Speech Technologies Homepage

Gets or sets the name of the prompt database. Read/write.

Usage

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

Remarks

The PromptDatabase property specifies the Prompt database to be used by the control.

Example

The following example demonstrates a PromptDatabase property that is used in the SocialSecurityNumber Application Speech Control.

<form id="Form1" method="post" runat="server">
  ...
  <speech:semanticmap id="SemanticMap1" runat="server">
      <speech:SemanticItem id="SemItemSSN" runat="server" BindOnChanged="True"
        TargetElement="TextBoxYear" TargetAttribute="value" >
      </speech:SemanticItem>
  </speech:semanticmap>

  <speech:SocialSecurityNumber id="SSN1" runat="server"
    QuestionPrompt="quel est votre numéro d'assurance sociale?" 
    PromptDatabase="Prompts\AppPrompts.prompts"
    Separator="-"
    BabbleTimeout="5000"
    FirstInitialTimeout="0"
    EndSilence="2500"
    InitialTimeout="5000"
    MaxTimeout="5000"
    SemanticItem="SemItemSSN">
  </speech:SocialSecurityNumber>

  <asp:TextBox id="TextBox1" runat="server"></asp:TextBox>
  ...
</form>

See Also

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