Partilhar via


CustomValidator Property

  Microsoft Speech Technologies Homepage

Gets or sets a CustomValidatorControlSettings control that sets property values of CustomValidator controls that reference it. Read/write.

Usage

Get value: CustomValidatorControlSettings = SpeechControlSettingsItem.CustomValidator;
Set value: SpeechControlSettingsItem.CustomValidator = CustomValidatorControlSettings;
Data type: CustomValidatorControlSettings
Required: No

Remarks

The CustomValidatorControlSettings control can set the following properties of the CustomValidator control:

Example

<form id="Form1" method="post" runat="server">
  ...
  <speech:SpeechControlSettings ID="AllSettings" runat="server">
    <Items>
      <speech:SpeechControlSettingsItem ID="Settings1" runat="server">
        ...
        <CustomValidator 
          ValidationEvent="onchanged">
          <Prompt ... >
          </Prompt>
        </CustomValidator>
        ...
      </speech:SpeechControlSettingsItem>
    </Items>
  </speech:SpeechControlSettings>
  ...
  <speech:CustomValidator Settings="Settings1" runat="server">
    <!-- CustomValidator contents --!>
  </speech:CustomValidator>
  ...
</form>

See Also

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