Compartir a través de


DataHeaderFields Property for French (Canada)

  Microsoft Speech Technologies Homepage

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

Usage

ASP.NET markup: <speech:DataTableNavigator DataHeaderFields="..." />
Get value: StringArrayList = DataTableNavigator.DataHeaderFields;
Set value: DataTableNavigator.DataHeaderFields = 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 DataHeaderFields property would be an array containing the data field names "ville" ("city") and "état" ("state"). Each time the control navigates to an element of this data, it collects the contents of the "City" and "State" fields in the element, concatenates them and speaks them.

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

If the DataHeaderFields contains duplicate field names, the control throws an ArgumentException.

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