DataContentFields Property for French (Canada)
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.
DataHeaderFields | DataContentFields | |||
---|---|---|---|---|
ville (city) | état (state) | minimum (low) | maximum (high) | conditions (conditions) |
Seattle | Washington | 53 | 76 | Cloudy |
Olympia | Washington | 62 | 74 | Rain |
Spokane | Washington | 47 | 82 | Clear |
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