Partilhar via


DataContentFields Property for French (Canada)

  Microsoft Speech Technologies Homepage

Gets or sets the text of the content fields of the control. Read/write.

Usage

ASP.NET markup: <speech:DataTableNavigator DataContentFields="..." />
Get value: StringArrayList = DataTableNavigator.DataContentFields;
Set value: DataTableNavigator.DataContentFields = StringArrayList;
Data type: StringArrayList
Required: Yes

Remarks

This table illustrates several fields of a data source containing weather data. To present this data with a DataTableNavigator control, its DataContentFields property would be an array containing the data field names "minimum" ("low"), "maximum" ("high"), and "conditions" ("conditions"). Each time the user asks the control to read this data, the control collects the contents of the "Low," "High," and "Conditions" fields in the element, concatenates them and speaks them.

DataHeaderFieldsDataContentFields
ville (city)état (state)minimum (low)maximum (high)conditions (conditions)
SeattleWashington5376Cloudy
OlympiaWashington6274Rain
SpokaneWashington4782Clear

Example

<form id="Form1" method="post" runat="server">
  ...
    <asp:textbox id="TextBox1" runat="server"></asp:textbox>
    <speech:semanticmap id="SemanticMap1" runat="server" >
      <speech:SemanticItem id="SemItemNav" runat="server" 
        TargetElement="TextBox1" TargetAttribute="value" BindOnChanged="True">
      </speech:SemanticItem>
    </speech:semanticmap>

    <speech:DataTableNavigator 
      id="Navigator1"  
      QuestionPrompt="météo par état" 
      DataHeaderFields="ville,état"
      DataContentFields="minimum,maximum,conditions" 
      EndSilence="2500" 
      AccessMode="Select" 
      ShortInitialTimeout="2000" 
      SemanticItem="SemItemNav"
      runat="server">
    </speech:DataTableNavigator>
  ...
</form>

See Also

DataTableNavigator Class | DataTableNavigator Constructor | DataTableNavigator Members | DataTableNavigator Properties | DataTableNavigator Methods | DataTableNavigator Events | DataTableNavigator Remarks | DataTableNavigator Client Object